mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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:
parent
f975dc63f1
commit
68ccc98930
@ -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
|
||||
|
||||
|
7
configure
vendored
7
configure
vendored
@ -649,6 +649,7 @@ else
|
||||
set_default_value HAIKU_STRIP_$targetArch strip
|
||||
fi
|
||||
|
||||
isPrimaryArch=1
|
||||
for targetArch in $targetArchs; do
|
||||
# Note: targetArch is "unknown<n>" at this point, if a cross-tools
|
||||
# prefix was specified. The standard_gcc_settings call below will get
|
||||
@ -664,6 +665,11 @@ else
|
||||
if [ $targetArch != x86_gcc2 ]; then
|
||||
script="${script}_gcc4 $targetMachine"
|
||||
fi
|
||||
secondaryArch=
|
||||
if [ -z "$isPrimaryArch" ]; then
|
||||
secondaryArch=$targetArch
|
||||
fi
|
||||
SECONDARY_ARCH=$secondaryArch \
|
||||
HAIKU_USE_GCC_GRAPHITE=`get_variable \
|
||||
HAIKU_USE_GCC_GRAPHITE_$targetArch` \
|
||||
$script "$sourceDir" "$buildCrossTools" "$crossToolsDir" \
|
||||
@ -726,6 +732,7 @@ else
|
||||
esac
|
||||
|
||||
HAIKU_PACKAGING_ARCHS="$HAIKU_PACKAGING_ARCHS $targetArch"
|
||||
isPrimaryArch=
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user