diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-10 22:47:23 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-10 22:47:23 (GMT) |
commit | 5b27e8de528dbfaa1e3ddd926af26b906db85c3d (patch) | |
tree | 384bcbc175437e3d5a53bbd93f9f91087d0bc7ec /scripts/build/companion_libs/libelf.sh | |
parent | 5b663e2aae05cab9fb519a2faba66f85f11db161 (diff) |
complibs: allow either static or shared build
Diffstat (limited to 'scripts/build/companion_libs/libelf.sh')
-rw-r--r-- | scripts/build/companion_libs/libelf.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/scripts/build/companion_libs/libelf.sh b/scripts/build/companion_libs/libelf.sh index ecda8ff..7bbc8e4 100644 --- a/scripts/build/companion_libs/libelf.sh +++ b/scripts/build/companion_libs/libelf.sh @@ -24,12 +24,21 @@ if [ "${CT_LIBELF}" = "y" ]; then # Uncomment when we need it for gcc-4.5 # WARNING! This function is absolutely UNTESTED yet! do_libelf() { - : # Remove this line! + : # Remove this line! and uncomment the following lines +# local -a libelf_opts +# # CT_DoStep INFO "Installing libelf" # mkdir -p "${CT_BUILD_DIR}/build-libelf" # CT_Pushd "${CT_BUILD_DIR}/build-libelf" # # CT_DoLog EXTRA "Configuring libelf" +# +# if [ "${CT_COMPLIBS_SHARED}" = "y" ]; then +# libelf_opts+=( --enable-shared --disable-static ) +# else +# libelf_opts+=( --disable-shared --enable-static ) +# fi +# # CC="${CT_TARGET}-gcc" \ # CT_DoExecLog ALL \ # "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \ @@ -39,9 +48,8 @@ do_libelf() { # --prefix="${CT_PREFIX_DIR}" \ # --enable-compat \ # --enable-elf64 \ -# --enable-static \ -# --enable-shared \ -# --enable-extended-format +# --enable-extended-format \ +# "${libelf_opts[@]}" # # CT_DoLog EXTRA "Building libelf" # CT_DoExecLog ALL make |