1.1 --- a/scripts/build/companion_libs/libelf.sh Sun Mar 20 01:08:22 2011 +0100
1.2 +++ b/scripts/build/companion_libs/libelf.sh Sun Jul 03 09:20:08 2011 +0200
1.3 @@ -22,20 +22,12 @@
1.4 if [ "${CT_LIBELF}" = "y" ]; then
1.5
1.6 do_libelf() {
1.7 - local -a libelf_opts
1.8 -
1.9 CT_DoStep INFO "Installing libelf"
1.10 mkdir -p "${CT_BUILD_DIR}/build-libelf"
1.11 CT_Pushd "${CT_BUILD_DIR}/build-libelf"
1.12
1.13 CT_DoLog EXTRA "Configuring libelf"
1.14
1.15 - if [ "${CT_COMPLIBS_SHARED}" = "y" ]; then
1.16 - libelf_opts+=( --enable-shared --disable-static )
1.17 - else
1.18 - libelf_opts+=( --disable-shared --enable-static )
1.19 - fi
1.20 -
1.21 CT_DoExecLog CFG \
1.22 CC="${CT_HOST}-gcc" \
1.23 CFLAGS="-fPIC" \
1.24 @@ -47,7 +39,8 @@
1.25 --enable-compat \
1.26 --enable-elf64 \
1.27 --enable-extended-format \
1.28 - "${libelf_opts[@]}"
1.29 + --disable-shared \
1.30 + --enable-static
1.31
1.32 CT_DoLog EXTRA "Building libelf"
1.33 CT_DoExecLog ALL make