Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set -e
- DEV_BINDIR="/home/amv/dev/bin"
- DEV_LIBDIR="/home/amv/dev/lib"
- DEV_SRCDIR="/home/amv/dev/gcc"
- CPPFLAGS="-fexceptions"
- # these are the symlinks setup in DEV_SRCDIR
- # gmp -> gmp-5.0.1
- # mpc -> mpc-0.8.2
- # mpfr -> mpfr-3.0.0
- # ppl -> ppl-0.11
- # cloog-ppl -> cloog-ppl-0.15.10
- # libelf -> libelf-0.8.13
- # gcc-src -> gcc-svn
- cd $DEV_SRCDIR/gmp
- ./configure --prefix=$DEV_LIBDIR --enable-cxx
- make
- make check
- make install
- cd $DEV_SRCDIR/mpfr
- ./configure --prefix=$DEV_LIBDIR --with-gmp=$DEV_LIBDIR
- make
- make install
- cd $DEV_SRCDIR/mpc
- ./configure --prefix=$DEV_LIBDIR --with-gmp=$DEV_LIBDIR --with-mpfr=$DEV_LIBDIR
- make
- make install
- cd $DEV_SRCDIR/ppl
- ./configure --prefix=$DEV_LIBDIR --with-gmp-build=$DEV_LIBDIR
- make
- make install
- use sudo apt-get install cloog-ppl-dev
- cd $DEV_SRCDIR/cloog-ppl
- ./configure --prefix=$DEV_LIBDIR --with-ppl=$DEV_LIBDIR --with-gmp=$DEV_LIBDIR --with-host-libstdcxx="-lstdc++ -lsupc++"
- ./autogen.sh
- make
- make check
- make install
- cd $DEV_SRCDIR/libelf
- ./configure --prefix=$DEV_LIBDIR
- make
- make install
- rm -rf $DEV_SRCDIR/gcc-build/*
- cd $DEV_SRCDIR/gcc-build
- $DEV_SRCDIR/gcc-src/configure --prefix=$DEV_BINDIR --with-gmp=$DEV_LIBDIR --with-mpfr=$DEV_LIBDIR --with-mpc=$DEV_LIBDIR --with-libelf=$DEV_LIBDIR --with-ppl=$DEV_LIBDIR --with-cloog=$DEV_LIBDIR --with-host-libstdcxx="-lstdc++ -lsupc++" --enable-lto
- make
- make check
- make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement