Build the cross gcc for the secondary arch as such

Pass --enable-hybrid-secondary to gcc's configure when building it as
a secondary compiler. Doesn't make a difference for building Haiku
itself, but makes it easier to match the Haiku cross devel package with
the compiler when building bootstrap packages with haikuporter.

gcc 4 only ATM.
This commit is contained in:
Ingo Weinhold
2013-08-04 17:21:20 +02:00
parent f975dc63f1
commit 68ccc98930
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -135,6 +135,10 @@ if [ "$HAIKU_USE_GCC_GRAPHITE" = 1 ]; then
--with-host-libstdcxx=\"-lstdc++\""
fi
if [ -n "$SECONDARY_ARCH" ]; then
gccConfigureArgs="$gccConfigureArgs --enable-hybrid-secondary"
fi
# force the POSIX locale, as the build (makeinfo) might choke otherwise
export LC_ALL=POSIX