summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2016-01-20 23:22:33 +0100
committerMartin Roth <martinroth@google.com>2016-01-26 04:45:57 +0100
commitde45c590808184be24b5f9d271b93740da7c0976 (patch)
tree84849ee1a0c2c3f56bc3d4168b70b150a220c212 /util
parent4af5886ab12e852f4a28aaeaeb2c19873193c601 (diff)
downloadcoreboot-de45c590808184be24b5f9d271b93740da7c0976.tar.xz
buildgcc: Help GMP build with 32-bit NetBSD
GMP's configure tries to build for 64-bit with a 32-bit userspace on NetBSD too. Help it by forcing ABI=32. Change-Id: I290ea0ef1626fdd88dc3ff74fadb9578ef6a1c9c Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/13067 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/crossgcc/buildgcc5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index b4f8c6bdcc..138558a3b1 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -688,6 +688,11 @@ elif [ $UNAME = "Linux" -o $UNAME = "Cygwin" ]; then
if [ "$(uname -m 2>/dev/null)" = "i686" ]; then
OPTIONS="ABI=32"
fi
+elif [ $UNAME = "NetBSD" ]; then
+ # same for NetBSD but this one reports an i386
+ if [ "$(uname -m 2>/dev/null)" = "i386" ]; then
+ OPTIONS="ABI=32"
+ fi
fi
fi # GCC