mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
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.
This commit is contained in:
parent
ccbfef2376
commit
461ca92d5d
@ -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} \
|
||||
|
Loading…
Reference in New Issue
Block a user