diff options
author | zbao <fishbaozi@gmail.com> | 2015-08-05 23:15:54 -0400 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-08-06 05:51:57 +0200 |
commit | 11f1d31d78e3e426c271ced7112de515d3b4c958 (patch) | |
tree | 361f28fb3356864dd9706c7782a2b3563b777d82 /util/crossgcc | |
parent | e05c1eac44443f566af3909831328806bb8cd49a (diff) | |
download | coreboot-11f1d31d78e3e426c271ced7112de515d3b4c958.tar.xz |
buildgcc: Deal with gmp on 32bit Cygwin on 64bit host
Similar to what the below change says,
(
http://review.coreboot.org/10792
commit ddb8f808940899240411282d0feb1e2f65ef43a9
Author: Patrick Georgi <patrick@georgi-clan.de>
Date: Sat Jul 4 17:45:54 2015 +0200
buildgcc: Deal with gmp on 32bit Linux on 64bit CPUs
GMP is overeager to detect 64bit ABIs even if the entire running codebase is
32bit (but on a 64bit CPU). Enforce a 32bit build in that situation.
)
building GMP can not detect Cygwin is 32bit either if the
host which Cygwin is running is 64bit. We set ABI=32
in that case.
Change-Id: Ic53d75defebbe902325eb07f3d8631b2a53245ef
Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: http://review.coreboot.org/11123
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc')
-rwxr-xr-x | util/crossgcc/buildgcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index cfe881bb55..eaeafcf136 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -622,7 +622,7 @@ if [ $UNAME = "Darwin" ]; then if $CC -v 2>&1 | grep -q LLVM; then CC=llvm-gcc fi -elif [ $UNAME = "Linux" ]; then +elif [ $UNAME = "Linux" -o $UNAME = "Cygwin" ]; then # gmp is overeager with detecting 64bit CPUs even if they run # a 32bit kernel and userland. if [ "$(uname -m 2>/dev/null)" = "i686" ]; then |