From 1b3c15e7ec296f9d146a6eb09d8fce469df754e7 Mon Sep 17 00:00:00 2001 From: Kalle Kankare Date: Fri, 3 Dec 2010 12:36:44 +0100 Subject: 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. (transplanted from 81b4c0efa46f757b89c150f66e09615ee7c0f5a4) diff --git a/scripts/build/companion_libs/libelf.sh b/scripts/build/companion_libs/libelf.sh index b899908..0488ddb 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} \ -- cgit v0.10.2-6-g49f6