gisejo

Untitled

Nov 11th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.67 KB | None | 0 0
  1. #!/bin/bash
  2. set -e
  3.  
  4. wget http://mirror.easyname.at/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz
  5. wget https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.6.tar.gz
  6. wget https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
  7. wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2
  8. wget http://isl.gforge.inria.fr/isl-0.21.tar.gz
  9.  
  10. BUILD_DIR=$( mktemp -d )
  11. mkdir ${BUILD_DIR}/isl ${BUILD_DIR}/gmp ${BUILD_DIR}/mpfr ${BUILD_DIR}/mpc
  12. tar xf gcc-9.2.0.tar.gz --strip-components=1 -C ${BUILD_DIR}
  13. tar xf isl-0.21.tar.gz --strip-components=1 -C ${BUILD_DIR}/isl
  14. tar xf gmp-6.1.2.tar.bz2 --strip-components=1 -C ${BUILD_DIR}/gmp
  15. tar xf mpc-1.0.3.tar.gz --strip-components=1 -C ${BUILD_DIR}/mpc
  16. tar xf mpfr-3.1.6.tar.gz --strip-components=1 -C ${BUILD_DIR}/mpfr
  17.  
  18. RESULT_DIR=${HOME}/gcc
  19. mkdir ${RESULT_DIR}
  20.  
  21. pushd .
  22. cd ${BUILD_DIR}
  23. mkdir build_dir && cd build_dir
  24. ../configure \
  25.      --prefix=${RESULT_DIR} \
  26.      --mandir=${RESULT_DIR}/share/man \
  27.      --infodir=${RESULT_DIR}/share/info \
  28.      --enable-bootstrap \
  29.      --enable-shared \
  30.      --enable-threads=posix \
  31.      --enable-checking=release \
  32.      --with-system-zlib \
  33.      --enable-__cxa_atexit \
  34.      --disable-libunwind-exceptions \
  35.      --enable-gnu-unique-object \
  36.      --enable-linker-build-id \
  37.      --with-linker-hash-style=gnu \
  38.      --enable-languages=c,c++ \
  39.      --enable-plugin \
  40.      --enable-initfini-array \
  41.      --disable-libgcj \
  42.      --enable-gnu-indirect-function \
  43.      --enable-secureplt \
  44.      --with-long-double-128 \
  45.      --enable-targets=powerpcle-linux \
  46.      --disable-multilib \
  47.      --with-cpu-64=power8 \
  48.      --with-tune-64=power8 \
  49.      --build=ppc64le-redhat-linux
  50. make -j
  51. make install
  52. popd
  53. rm -rf ${BUILD_DIR}
Add Comment
Please, Sign In to add comment