gcc: various fixes

This commit is contained in:
Muhammad Herdiansyah 2019-07-15 10:02:52 +07:00
parent d6c56f8587
commit 80f188be02

View File

@ -1,8 +1,12 @@
#!/bin/sh -e #!/bin/sh -e
# Make sure gmp is built with generic options. # Make sure gmp is built with generic options.
cp -v gmp/configfsf.guess gmp/config.guess cp -v gcc/gmp/configfsf.guess gcc/gmp/config.guess
cp -v gmp/configfsf.sub gmp/config.sub cp -v gcc/gmp/configfsf.sub gcc/gmp/config.sub
# Use lib not lib64 by default.
sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64
sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
# Build must happen outside of gcc source. # Build must happen outside of gcc source.
mkdir -p gcc-build mkdir -p gcc-build
@ -10,14 +14,6 @@ cd gcc-build
export libat_cv_have_ifunc=no export libat_cv_have_ifunc=no
# Unset CFLAGS/CXXFLAGS to make 'gcc' build as generic.
export CFLAGS=-pipe
export CXXFLAGS=-pipe
# Use lib not lib64 by default.
sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
sed -i 's/lib64/lib/' gcc/config/i386/linux64.h
../gcc/configure \ ../gcc/configure \
--prefix=/usr \ --prefix=/usr \
--disable-multilib \ --disable-multilib \