forked from kiss-community/repo
gcc: various fixes
This commit is contained in:
parent
d6c56f8587
commit
80f188be02
@ -1,8 +1,12 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
# Make sure gmp is built with generic options.
|
||||
cp -v gmp/configfsf.guess gmp/config.guess
|
||||
cp -v gmp/configfsf.sub gmp/config.sub
|
||||
cp -v gcc/gmp/configfsf.guess gcc/gmp/config.guess
|
||||
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.
|
||||
mkdir -p gcc-build
|
||||
@ -10,14 +14,6 @@ cd gcc-build
|
||||
|
||||
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 \
|
||||
--prefix=/usr \
|
||||
--disable-multilib \
|
||||
|
Loading…
Reference in New Issue
Block a user