mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
build/scripts/gcc2: Specify -fcommon as the default changed in gcc10
* gcc10 changed to -fno-common default * Resolves #16520 Change-Id: I9af2234532177f2153159eea94a05a106587ebbb Reviewed-on: https://review.haiku-os.org/c/haiku/+/3317 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
969c176d82
commit
c33a98eebc
@ -118,7 +118,7 @@ fi
|
||||
|
||||
# build binutils
|
||||
cd $binutilsObjDir
|
||||
CFLAGS="-O2" CXXFLAGS="-O2" $buildToolsDir/binutils/configure \
|
||||
CFLAGS="-O2 -fcommon" CXXFLAGS="-O2 -fcommon" $buildToolsDir/binutils/configure \
|
||||
--prefix=$installDir $buildHostSpec --target=i586-pc-haiku \
|
||||
--disable-nls --enable-shared=yes --disable-werror || exit 1
|
||||
$MAKE $additionalMakeArgs || exit 1
|
||||
@ -159,7 +159,7 @@ copy_headers $haikuSourceDir/headers/posix $tmpIncludeDir/posix
|
||||
cd $gccObjDir
|
||||
# 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 \
|
||||
CFLAGS="-O2 -U_FORTIFY_SOURCE -fcommon" CXXFLAGS="-O2 -fcommon" $buildToolsDir/gcc/configure \
|
||||
--prefix=$installDir $buildHostSpec --target=i586-pc-haiku \
|
||||
--disable-nls --enable-shared=yes --enable-languages=c,c++ \
|
||||
--with-headers=$tmpIncludeDir --with-libs=$tmpLibDir $gccConfigureArgs \
|
||||
|
Loading…
Reference in New Issue
Block a user