summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2017-02-22 01:25:26 (GMT)
committerDan McGregor <dan.mcgregor@usask.ca>2017-03-06 14:56:36 (GMT)
commit7f961026c193bda19b91acee756ae206412c7bc5 (patch)
tree7d7b2dac3a51f513327be53bc54de82178042d08
parentc88621f74005dcbbc9787c1cae33c5751ec5ef81 (diff)
Explicitly use gcc for GMP
GMP's configure script tries to be too smart, and if it determines that it's not cross-compiling it chooses gcc or cc instead of the wrapper we create at the start of the build. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
-rw-r--r--scripts/build/companion_libs/100-gmp.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/companion_libs/100-gmp.sh b/scripts/build/companion_libs/100-gmp.sh
index c81874a..e6a4875 100644
--- a/scripts/build/companion_libs/100-gmp.sh
+++ b/scripts/build/companion_libs/100-gmp.sh
@@ -88,7 +88,10 @@ do_gmp_backend() {
extra_config+=("--enable-mpbsd")
fi
+ # FIXME: GMP's configure script doesn't respect the host parameter
+ # when not cross-compiling, ie when build == host.
CT_DoExecLog CFG \
+ CC="${host}-gcc" \
CFLAGS="${cflags} -fexceptions" \
LDFLAGS="${ldflags}" \
${CONFIG_SHELL} \