Use GNU make also for building gcc 2
Should fix the build on {Free,Open}BSD.
This commit is contained in:
@@ -113,8 +113,8 @@ cd $binutilsObjDir
|
|||||||
CFLAGS="-O2" CXXFLAGS="-O2" $buildToolsDir/binutils/configure \
|
CFLAGS="-O2" CXXFLAGS="-O2" $buildToolsDir/binutils/configure \
|
||||||
--prefix=$installDir $buildHostSpec --target=i586-pc-haiku \
|
--prefix=$installDir $buildHostSpec --target=i586-pc-haiku \
|
||||||
--disable-nls --enable-shared=yes --disable-werror || exit 1
|
--disable-nls --enable-shared=yes --disable-werror || exit 1
|
||||||
make $additionalMakeArgs || exit 1
|
$MAKE $additionalMakeArgs || exit 1
|
||||||
make $additionalMakeArgs install || exit 1
|
$MAKE $additionalMakeArgs install || exit 1
|
||||||
|
|
||||||
PATH=$PATH:$installDir/bin
|
PATH=$PATH:$installDir/bin
|
||||||
export PATH
|
export PATH
|
||||||
@@ -173,13 +173,13 @@ eval "sed $sedExpr Makefile.bak > Makefile" || exit 1
|
|||||||
rm Makefile.bak
|
rm Makefile.bak
|
||||||
|
|
||||||
# make gcc
|
# make gcc
|
||||||
make cross || {
|
$MAKE cross || {
|
||||||
echo "ERROR: Building gcc failed." >&2
|
echo "ERROR: Building gcc failed." >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# install gcc
|
# install gcc
|
||||||
make install-gcc-cross || {
|
$MAKE install-gcc-cross || {
|
||||||
echo "ERROR: Installing the cross compiler failed." >&2
|
echo "ERROR: Installing the cross compiler failed." >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,16 +16,6 @@ installDir=$4
|
|||||||
shift 4
|
shift 4
|
||||||
additionalMakeArgs=$*
|
additionalMakeArgs=$*
|
||||||
|
|
||||||
case `uname` in
|
|
||||||
FreeBSD|OpenBSD)
|
|
||||||
MAKE=gmake
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
MAKE=make
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
export MAKE
|
|
||||||
|
|
||||||
case $haikuMachine in
|
case $haikuMachine in
|
||||||
x86_64-*)
|
x86_64-*)
|
||||||
# GCC's default is to enable multilib, but there is a bug when
|
# GCC's default is to enable multilib, but there is a bug when
|
||||||
|
|||||||
@@ -754,6 +754,13 @@ else
|
|||||||
if [ -z "$isPrimaryArch" ]; then
|
if [ -z "$isPrimaryArch" ]; then
|
||||||
secondaryArch=$targetArch
|
secondaryArch=$targetArch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $HOST_PLATFORM in
|
||||||
|
freebsd|openbsd) MAKE=gmake;;
|
||||||
|
*) MAKE=make;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
MAKE=$MAKE \
|
||||||
SECONDARY_ARCH=$secondaryArch \
|
SECONDARY_ARCH=$secondaryArch \
|
||||||
HAIKU_USE_GCC_GRAPHITE=`get_variable \
|
HAIKU_USE_GCC_GRAPHITE=`get_variable \
|
||||||
HAIKU_USE_GCC_GRAPHITE_$targetArch` \
|
HAIKU_USE_GCC_GRAPHITE_$targetArch` \
|
||||||
|
|||||||
Reference in New Issue
Block a user