# HG changeset patch # User Kalle Kankare # Date 1291376204 -3600 # Node ID 81b4c0efa46f757b89c150f66e09615ee7c0f5a4 # Parent bd86485d966a5d78ecbe5d58f02c6da8613e0c1b 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. diff -r bd86485d966a -r 81b4c0efa46f scripts/build/companion_libs/libelf.sh --- a/scripts/build/companion_libs/libelf.sh Sun Dec 12 22:18:52 2010 +0100 +++ b/scripts/build/companion_libs/libelf.sh Fri Dec 03 12:36:44 2010 +0100 @@ -36,6 +36,7 @@ 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} \