gcc: Attempt to fix build.

This commit is contained in:
Dylan Araps 2019-07-12 10:22:13 +03:00
parent 85752fbd17
commit 5ffda2c512
2 changed files with 11 additions and 4 deletions

View File

@ -7,8 +7,12 @@ cd gcc-build
export libat_cv_have_ifunc=no export libat_cv_have_ifunc=no
machine=$(gcc -dumpmachine) machine=$(gcc -dumpmachine)
# Unset CFLAGS/CXXFLAGS to make 'gcc' build as generic.
unset CFLAGS CXXFLAGS
../gcc/configure \ ../gcc/configure \
--prefix=/usr \ --prefix=/usr \
--disable-bootstrap \
--disable-multilib \ --disable-multilib \
--disable-symvers \ --disable-symvers \
--disable-libmpx \ --disable-libmpx \
@ -29,13 +33,16 @@ machine=$(gcc -dumpmachine)
--enable-threads \ --enable-threads \
--enable-tls \ --enable-tls \
--enable-languages=c,c++ \ --enable-languages=c,c++ \
--build="$machine" \ --build="$machine"
--target="$machine" \
--host="$machine"
make BOOT_CFLAGS='-O' make BOOT_CFLAGS='-O'
make DESTDIR="$1" install make DESTDIR="$1" install
# Save 35MB.
find "$1" -name libgtkpeer.a -delete
find "$1" -name libgjsmalsa.a -delete
find "$1" -name libgij.a -delete
# Remove all info files. # Remove all info files.
rm -rf "$1/usr/share/info" rm -rf "$1/usr/share/info"

View File

@ -1 +1 @@
9.1.0 1 9.1.0 2