summaryrefslogtreecommitdiff
path: root/Toolchain
diff options
context:
space:
mode:
authorJames Mintram <me@jamesrm.com>2022-04-01 00:06:48 +0100
committerLinus Groh <mail@linusgroh.de>2022-04-01 19:39:56 +0100
commit81b6386c8735dfce95fd42b644376a5c291d837c (patch)
tree929f80144bba171d8950aa8c1b7ef68845b846ab /Toolchain
parentdb8942178a9e6b25960970c5ef8b45e47ab2d38d (diff)
downloadserenity-81b6386c8735dfce95fd42b644376a5c291d837c.zip
Toolchain: Fix the gdb build for aarch64 target on macOS host
Diffstat (limited to 'Toolchain')
-rwxr-xr-xToolchain/BuildIt.sh31
1 files changed, 25 insertions, 6 deletions
diff --git a/Toolchain/BuildIt.sh b/Toolchain/BuildIt.sh
index cf04b665ee..8b33fc2da7 100755
--- a/Toolchain/BuildIt.sh
+++ b/Toolchain/BuildIt.sh
@@ -308,12 +308,31 @@ pushd "$DIR/Build/$ARCH"
pushd gdb
echo "XXX configure gdb"
- buildstep "gdb/configure" "$DIR"/Tarballs/$GDB_NAME/configure --prefix="$PREFIX" \
- --target="$TARGET" \
- --with-sysroot="$SYSROOT" \
- --enable-shared \
- --disable-nls \
- ${TRY_USE_LOCAL_TOOLCHAIN:+"--quiet"} || exit 1
+
+
+ if [ "$SYSTEM_NAME" = "Darwin" ]; then
+ buildstep "gdb/configure" "$DIR"/Tarballs/$GDB_NAME/configure --prefix="$PREFIX" \
+ --target="$TARGET" \
+ --with-sysroot="$SYSROOT" \
+ --enable-shared \
+ --disable-werror \
+ --with-libgmp-prefix="$(brew --prefix gmp)" \
+ --with-gmp="$(brew --prefix gmp)" \
+ --with-isl="$(brew --prefix isl)" \
+ --with-mpc="$(brew --prefix libmpc)" \
+ --with-mpfr="$(brew --prefix mpfr)" \
+ --disable-nls \
+ ${TRY_USE_LOCAL_TOOLCHAIN:+"--quiet"} || exit 1
+ else
+ buildstep "gdb/configure" "$DIR"/Tarballs/$GDB_NAME/configure --prefix="$PREFIX" \
+ --target="$TARGET" \
+ --with-sysroot="$SYSROOT" \
+ --enable-shared \
+ --disable-nls \
+ ${TRY_USE_LOCAL_TOOLCHAIN:+"--quiet"} || exit 1
+ fi
+
+
echo "XXX build gdb"
buildstep "gdb/build" "$MAKE" -j "$MAKEJOBS" || exit 1
buildstep "gdb/install" "$MAKE" install || exit 1