As proposed by "augiedoggie" undefine the _FORTIFY_SOURCE macro, which
apparently is enabled by default on newer Ubuntu versions and breaks the gcc build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28396 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f37b0b4f09
commit
fecef4111e
@ -95,7 +95,8 @@ copy_headers $haikuSourceDir/headers/posix $tmpIncludeDir/posix
|
|||||||
|
|
||||||
# configure gcc
|
# configure gcc
|
||||||
cd $gccObjDir
|
cd $gccObjDir
|
||||||
CFLAGS="-O2" CXXFLAGS="-O2" $buildToolsDir/gcc/configure --prefix=$installDir \
|
CFLAGS="-O2 -U_FORTIFY_SOURCE" CXXFLAGS="-O2" $buildToolsDir/gcc/configure \
|
||||||
|
--prefix=$installDir \
|
||||||
--target=i586-pc-haiku --disable-nls --enable-shared=yes \
|
--target=i586-pc-haiku --disable-nls --enable-shared=yes \
|
||||||
--enable-languages=c,c++ --with-headers=$tmpIncludeDir \
|
--enable-languages=c,c++ --with-headers=$tmpIncludeDir \
|
||||||
--with-libs=$tmpLibDir || exit 1
|
--with-libs=$tmpLibDir || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user