Guest User

Untitled

a guest
Jan 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. set -e
  4. pushd `dirname $0`
  5.  
  6. export CC=gcc-7
  7. export CXX=g++-7
  8. PREFIX=`pwd`
  9.  
  10. rm -rf include lib share
  11.  
  12. mkdir -p __build__
  13. cd __build__
  14. rm -f ./makeinfo
  15. ln -s /usr/bin/true makeinfo
  16. export PATH=${PWD}:${PATH}
  17. export MAKEINFO=true
  18. rm -rf gmp-6.1.0 mpfr-3.1.4 mpc-1.0.3 isl-0.18
  19. curl -L ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2 | tar xf -
  20. curl -L ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2 | tar xf -
  21. curl -L ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz | tar xf -
  22. curl -L ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.18.tar.bz2 | tar xf -
  23.  
  24. pushd gmp-6.1.0
  25. mkdir __build__
  26. cd __build__
  27. ../configure --prefix=${PREFIX} --enable-cxx
  28. make -j 8
  29. make install-strip
  30. popd
  31. rm -rf gmp-6.1.0
  32.  
  33. pushd mpfr-3.1.4
  34. mkdir __build__
  35. cd __build__
  36. ../configure --prefix=${PREFIX} --with-gmp=${PREFIX}
  37. make -j 8
  38. make install-strip
  39. popd
  40. rm -rf mpfr-3.1.4
  41.  
  42. pushd mpc-1.0.3
  43. mkdir __build__
  44. cd __build__
  45. ../configure --prefix=${PREFIX} --with-gmp=${PREFIX} --with-mpfr=${PREFIX}
  46. make -j 8
  47. make install-strip
  48. popd
  49. rm -rf mpc-1.0.3
  50.  
  51. pushd isl-0.18
  52. mkdir __build__
  53. cd __build__
  54. ../configure --prefix=${PREFIX} --with-gmp-prefix=${PREFIX}
  55. make -j 8
  56. make install-strip
  57. popd
  58. rm -rf isl-0.18
  59.  
  60. pushd gcc-svn
  61. svn up
  62. rm -rf __build__
  63. mkdir __build__
  64. cd __build__
  65. ../configure \
  66. --prefix=${PREFIX} \
  67. --with-gmp=${PREFIX} \
  68. --with-mpfr=${PREFIX} \
  69. --with-mpc=${PREFIX} \
  70. --with-isl=${PREFIX} \
  71. --program-suffix=-mxx \
  72. --enable-checking=release \
  73. --enable-languages=c,c++ \
  74.  
  75. make -j 8
  76. make install-strip
  77. cd ..
  78. rm -rf __build__
  79.  
  80. popd
Add Comment
Please, Sign In to add comment