diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-01-29 14:38:49 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-01-29 14:38:49 -0500 |
commit | 73a53c48901e120a06d221c8cb4f02076e3b9888 (patch) | |
tree | 8fb5e157dc19b8b8d22af12b5a51288802d5b660 /etc/pkgs/001-gcc.sh | |
parent | 92f2ea6ed46ffae5302a47452d816b5dc5784eb7 (diff) | |
download | docker-python-73a53c48901e120a06d221c8cb4f02076e3b9888.tar.gz |
Introduce real toolchain
Diffstat (limited to 'etc/pkgs/001-gcc.sh')
-rwxr-xr-x | etc/pkgs/001-gcc.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/pkgs/001-gcc.sh b/etc/pkgs/001-gcc.sh index 52c01da..21065cd 100755 --- a/etc/pkgs/001-gcc.sh +++ b/etc/pkgs/001-gcc.sh @@ -12,7 +12,7 @@ url_isl=http://isl.gforge.inria.fr/isl-${version_isl}.tar.bz2 version_cloog=0.18.4 url_cloog="http://www.bastoul.net/cloog/pages/download/count.php3?url=./cloog-${version_cloog}.tar.gz" -sudo yum install -y wget +# Ensure 64-bit libraries go into /lib sudo ln -sf ${TOOLCHAIN_LIB} ${TOOLCHAIN}/lib64 curl -LO ${url} @@ -49,7 +49,7 @@ pushd ${bld} --prefix=${TOOLCHAIN} \ --libdir=${TOOLCHAIN_LIB} \ --libexecdir=${TOOLCHAIN_LIB} \ - --disable-bootstrap \ + --disable-static \ --disable-multilib \ --disable-werror \ --disable-libunwind-exceptions \ @@ -58,6 +58,8 @@ pushd ${bld} --with-system-zlib \ --with-isl \ --with-linker-hash-style=gnu \ + --with-tune=generic \ + --enable-bootstrap \ --enable-languages=c,c++,fortran,lto,go \ --enable-shared \ --enable-threads=posix \ @@ -78,6 +80,9 @@ pushd ${bld} make -j${_maxjobs} make install-strip + # Binutils build cannot use this static archive + rm -f "${TOOLCHAIN_LIB}/libiberty.a" + # Prevent ldconfig from picking up gdb python scripts autoload="${TOOLCHAIN_DATA}/gdb/auto-load${TOOLCHAIN_LIB}" mkdir -p "${autoload}" |