build_cross_tools: Compile GCC2 as 32-bit everywhere.
It is just straight up broken on most systems without this, as the same "cast specifies signature type" appears there too. Exactly why this fixes the problem does not appear to be any more known than it was when this was first instated in 2012.
This commit is contained in:
parent
2cf7d49495
commit
d34addaf3f
@ -151,12 +151,8 @@ copy_headers $haikuSourceDir/headers/posix $tmpIncludeDir/posix
|
||||
|
||||
# configure gcc
|
||||
cd $gccObjDir
|
||||
case `uname` in
|
||||
Darwin)
|
||||
# GCC 2 compiled for x86_64 OS X is broken, compile for i386.
|
||||
export CC="gcc -arch i386"
|
||||
;;
|
||||
esac
|
||||
# GCC 2 compiled for x86_64 on most systems is broken, compile for 32-bit.
|
||||
export CC="gcc -m32"
|
||||
CFLAGS="-O2 -U_FORTIFY_SOURCE" CXXFLAGS="-O2" $buildToolsDir/gcc/configure \
|
||||
--prefix=$installDir $buildHostSpec --target=i586-pc-haiku \
|
||||
--disable-nls --enable-shared=yes --enable-languages=c,c++ \
|
||||
|
Loading…
x
Reference in New Issue
Block a user