complibs/libelf: use host compiler 1.9
authorKalle Kankare <kalle.kankare@vincit.fi>
Fri Dec 03 12:36:44 2010 +0100 (2010-12-03)
branch1.9
changeset 221746e64ffd181a
parent 2198 6d909657dbdf
child 2218 398a02564b38
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)
scripts/build/companion_libs/libelf.sh
     1.1 --- a/scripts/build/companion_libs/libelf.sh	Tue Nov 23 21:35:28 2010 +0100
     1.2 +++ b/scripts/build/companion_libs/libelf.sh	Fri Dec 03 12:36:44 2010 +0100
     1.3 @@ -36,6 +36,7 @@
     1.4          libelf_opts+=( --disable-shared --enable-static )
     1.5      fi
     1.6  
     1.7 +    CC="${CT_HOST}-gcc"                                     \
     1.8      CT_DoExecLog CFG                                        \
     1.9      "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure"   \
    1.10          --build=${CT_BUILD}                                 \