diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/companion_libs/100-gmp.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build/companion_libs/100-gmp.sh b/scripts/build/companion_libs/100-gmp.sh index a17eda9a..8afa5aec 100644 --- a/scripts/build/companion_libs/100-gmp.sh +++ b/scripts/build/companion_libs/100-gmp.sh @@ -118,9 +118,12 @@ do_gmp_backend() { ;; esac - # FIXME: GMP's configure script doesn't respect the host parameter - # when not cross-compiling, ie when build == host. + # GMP's configure script doesn't respect the host parameter + # when not cross-compiling, ie when build == host so set + # CC_FOR_BUILD and CPP_FOR_BUILD. CT_DoExecLog CFG \ + CC_FOR_BUILD="${CT_BUILD}-gcc" \ + CPP_FOR_BUILD="{CT_BUILD}-cpp" \ CC="${host}-gcc" \ CFLAGS="${cflags} -fexceptions" \ LDFLAGS="${ldflags}" \ |