build_cross_tools: use --with-hybrid-secondary when needed
This commit is contained in:
@@ -94,6 +94,11 @@ mkdir -p $installDir $objDir $binutilsObjDir $gccObjDir $tmpIncludeDir \
|
|||||||
$tmpLibDir || exit 1
|
$tmpLibDir || exit 1
|
||||||
mkdir -p $installDir/lib/gcc-lib/i586-pc-haiku/$haikuRequiredLegacyGCCVersion
|
mkdir -p $installDir/lib/gcc-lib/i586-pc-haiku/$haikuRequiredLegacyGCCVersion
|
||||||
|
|
||||||
|
gccConfigureArgs=
|
||||||
|
if [ -n "$SECONDARY_ARCH" ]; then
|
||||||
|
gccConfigureArgs="$gccConfigureArgs --with-hybrid-secondary=$SECONDARY_ARCH"
|
||||||
|
fi
|
||||||
|
|
||||||
# force the POSIX locale, as the build (makeinfo) might choke otherwise
|
# force the POSIX locale, as the build (makeinfo) might choke otherwise
|
||||||
export LC_ALL=POSIX
|
export LC_ALL=POSIX
|
||||||
|
|
||||||
@@ -153,7 +158,7 @@ esac
|
|||||||
CFLAGS="-O2 -U_FORTIFY_SOURCE" CXXFLAGS="-O2" $buildToolsDir/gcc/configure \
|
CFLAGS="-O2 -U_FORTIFY_SOURCE" CXXFLAGS="-O2" $buildToolsDir/gcc/configure \
|
||||||
--prefix=$installDir $buildHostSpec --target=i586-pc-haiku \
|
--prefix=$installDir $buildHostSpec --target=i586-pc-haiku \
|
||||||
--disable-nls --enable-shared=yes --enable-languages=c,c++ \
|
--disable-nls --enable-shared=yes --enable-languages=c,c++ \
|
||||||
--with-headers=$tmpIncludeDir --with-libs=$tmpLibDir \
|
--with-headers=$tmpIncludeDir --with-libs=$tmpLibDir $gccConfigureArgs \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
unset CC
|
unset CC
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user