aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Kankare <kalle.kankare@vincit.fi>2010-12-03 12:36:44 +0100
committerKalle Kankare <kalle.kankare@vincit.fi>2010-12-03 12:36:44 +0100
commit461ca92d5d07dd5b7effd4788d99d90ad9cc621e (patch)
tree989e6180296c6971e399836e4504f6cafec52e9f
parentccbfef23763ee8781b032fec579324deaba1764f (diff)
downloadcrosstool-ng-461ca92d5d07dd5b7effd4788d99d90ad9cc621e.tar.gz
crosstool-ng-461ca92d5d07dd5b7effd4788d99d90ad9cc621e.tar.bz2
crosstool-ng-461ca92d5d07dd5b7effd4788d99d90ad9cc621e.zip
complibs/libelf: use host compiler
It appears, that the configure scripts of libelf versions 0.8.13 and 0.8.12 do not honour the --host option. The compiler must be given as an environment variable or the process will use the command "gcc" as the compiler. It seems that this is already done in the function do_libelf_target in scripts/build/companion_libs/libelf.sh, but not in function do_libelf.
-rw-r--r--scripts/build/companion_libs/libelf.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/build/companion_libs/libelf.sh b/scripts/build/companion_libs/libelf.sh
index b899908b..0488ddb7 100644
--- a/scripts/build/companion_libs/libelf.sh
+++ b/scripts/build/companion_libs/libelf.sh
@@ -36,6 +36,7 @@ do_libelf() {
libelf_opts+=( --disable-shared --enable-static )
fi
+ CC="${CT_HOST}-gcc" \
CT_DoExecLog CFG \
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
--build=${CT_BUILD} \