scripts/build/companion_libs/libelf.sh
changeset 1892 af092b4bf65c
parent 1811 35cf5e2f110a
child 1893 f5dab3c43abf
     1.1 --- a/scripts/build/companion_libs/libelf.sh	Wed Feb 17 23:41:17 2010 +0100
     1.2 +++ b/scripts/build/companion_libs/libelf.sh	Sun Apr 11 00:47:23 2010 +0200
     1.3 @@ -24,12 +24,21 @@
     1.4  # Uncomment when we need it for gcc-4.5
     1.5  # WARNING! This function is absolutely UNTESTED yet!
     1.6  do_libelf() {
     1.7 -    : # Remove this line!
     1.8 +    : # Remove this line! and uncomment the following lines
     1.9 +#    local -a libelf_opts
    1.10 +#
    1.11  #    CT_DoStep INFO "Installing libelf"
    1.12  #    mkdir -p "${CT_BUILD_DIR}/build-libelf"
    1.13  #    CT_Pushd "${CT_BUILD_DIR}/build-libelf"
    1.14  #
    1.15  #    CT_DoLog EXTRA "Configuring libelf"
    1.16 +#
    1.17 +#    if [ "${CT_COMPLIBS_SHARED}" = "y" ]; then
    1.18 +#        libelf_opts+=( --enable-shared --disable-static )
    1.19 +#    else
    1.20 +#        libelf_opts+=( --disable-shared --enable-static )
    1.21 +#    fi
    1.22 +#
    1.23  #    CC="${CT_TARGET}-gcc"                                   \
    1.24  #    CT_DoExecLog ALL                                        \
    1.25  #    "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure"   \
    1.26 @@ -39,9 +48,8 @@
    1.27  #        --prefix="${CT_PREFIX_DIR}"                         \
    1.28  #        --enable-compat                                     \
    1.29  #        --enable-elf64                                      \
    1.30 -#        --enable-static                                     \
    1.31 -#        --enable-shared                                     \
    1.32 -#        --enable-extended-format
    1.33 +#        --enable-extended-format                            \
    1.34 +#        "${libelf_opts[@]}"
    1.35  #
    1.36  #    CT_DoLog EXTRA "Building libelf"
    1.37  #    CT_DoExecLog ALL make