Advertisement
Guest User

gcc compile script

a guest
Sep 28th, 2010
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. set -e
  2.  
  3. DEV_BINDIR="/home/amv/dev/bin"
  4. DEV_LIBDIR="/home/amv/dev/lib"
  5. DEV_SRCDIR="/home/amv/dev/gcc"
  6. CPPFLAGS="-fexceptions"
  7.  
  8. # these are the symlinks setup in DEV_SRCDIR
  9. # gmp -> gmp-5.0.1
  10. # mpc -> mpc-0.8.2
  11. # mpfr -> mpfr-3.0.0
  12. # ppl -> ppl-0.11
  13. # cloog-ppl -> cloog-ppl-0.15.10
  14. # libelf -> libelf-0.8.13
  15. # gcc-src -> gcc-svn
  16.  
  17.  
  18. cd $DEV_SRCDIR/gmp
  19. ./configure --prefix=$DEV_LIBDIR --enable-cxx
  20. make
  21. make check
  22. make install
  23.  
  24. cd $DEV_SRCDIR/mpfr
  25. ./configure --prefix=$DEV_LIBDIR --with-gmp=$DEV_LIBDIR
  26. make
  27. make install
  28.  
  29. cd $DEV_SRCDIR/mpc
  30. ./configure --prefix=$DEV_LIBDIR --with-gmp=$DEV_LIBDIR --with-mpfr=$DEV_LIBDIR
  31. make
  32. make install
  33.  
  34. cd $DEV_SRCDIR/ppl
  35. ./configure --prefix=$DEV_LIBDIR --with-gmp-build=$DEV_LIBDIR
  36. make
  37. make install
  38.  
  39. use sudo apt-get install cloog-ppl-dev
  40. cd $DEV_SRCDIR/cloog-ppl
  41. ./configure --prefix=$DEV_LIBDIR --with-ppl=$DEV_LIBDIR --with-gmp=$DEV_LIBDIR --with-host-libstdcxx="-lstdc++ -lsupc++"
  42. ./autogen.sh
  43. make
  44. make check
  45. make install
  46.  
  47. cd $DEV_SRCDIR/libelf
  48. ./configure --prefix=$DEV_LIBDIR
  49. make
  50. make install
  51.  
  52. rm -rf $DEV_SRCDIR/gcc-build/*
  53. cd $DEV_SRCDIR/gcc-build
  54. $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
  55. make
  56. make check
  57. make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement