Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- wget http://mirror.easyname.at/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz
- wget https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.6.tar.gz
- wget https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
- wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2
- wget http://isl.gforge.inria.fr/isl-0.21.tar.gz
- BUILD_DIR=$( mktemp -d )
- mkdir ${BUILD_DIR}/isl ${BUILD_DIR}/gmp ${BUILD_DIR}/mpfr ${BUILD_DIR}/mpc
- tar xf gcc-9.2.0.tar.gz --strip-components=1 -C ${BUILD_DIR}
- tar xf isl-0.21.tar.gz --strip-components=1 -C ${BUILD_DIR}/isl
- tar xf gmp-6.1.2.tar.bz2 --strip-components=1 -C ${BUILD_DIR}/gmp
- tar xf mpc-1.0.3.tar.gz --strip-components=1 -C ${BUILD_DIR}/mpc
- tar xf mpfr-3.1.6.tar.gz --strip-components=1 -C ${BUILD_DIR}/mpfr
- RESULT_DIR=${HOME}/gcc
- mkdir ${RESULT_DIR}
- pushd .
- cd ${BUILD_DIR}
- mkdir build_dir && cd build_dir
- ../configure \
- --prefix=${RESULT_DIR} \
- --mandir=${RESULT_DIR}/share/man \
- --infodir=${RESULT_DIR}/share/info \
- --enable-bootstrap \
- --enable-shared \
- --enable-threads=posix \
- --enable-checking=release \
- --with-system-zlib \
- --enable-__cxa_atexit \
- --disable-libunwind-exceptions \
- --enable-gnu-unique-object \
- --enable-linker-build-id \
- --with-linker-hash-style=gnu \
- --enable-languages=c,c++ \
- --enable-plugin \
- --enable-initfini-array \
- --disable-libgcj \
- --enable-gnu-indirect-function \
- --enable-secureplt \
- --with-long-double-128 \
- --enable-targets=powerpcle-linux \
- --disable-multilib \
- --with-cpu-64=power8 \
- --with-tune-64=power8 \
- --build=ppc64le-redhat-linux
- make -j
- make install
- popd
- rm -rf ${BUILD_DIR}
Add Comment
Please, Sign In to add comment