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>
This commit is contained in:
Dan McGregor 2017-02-21 19:25:26 -06:00
parent c88621f740
commit 7f961026c1

View File

@ -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} \