diff --git a/build/scripts/build_cross_tools b/build/scripts/build_cross_tools index 74b84059d1..6347a2a33e 100755 --- a/build/scripts/build_cross_tools +++ b/build/scripts/build_cross_tools @@ -94,6 +94,11 @@ mkdir -p $installDir $objDir $binutilsObjDir $gccObjDir $tmpIncludeDir \ $tmpLibDir || exit 1 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 export LC_ALL=POSIX @@ -153,7 +158,7 @@ esac 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++ \ - --with-headers=$tmpIncludeDir --with-libs=$tmpLibDir \ + --with-headers=$tmpIncludeDir --with-libs=$tmpLibDir $gccConfigureArgs \ || exit 1 unset CC