scripts/build/internals.sh
changeset 2386 ff33dccf005c
parent 2357 21025504dbc9
child 2408 560670f2ce09
     1.1 --- a/scripts/build/internals.sh	Tue Mar 22 18:10:00 2011 +0100
     1.2 +++ b/scripts/build/internals.sh	Thu Apr 07 19:17:12 2011 +0200
     1.3 @@ -87,56 +87,6 @@
     1.4      done
     1.5      CT_Popd
     1.6  
     1.7 -    # If using the companion libraries, we need a wrapper
     1.8 -    # that will set LD_LIBRARY_PATH approriately
     1.9 -    if [ "${CT_WRAPPER_NEEDED}" = "y" ]; then
    1.10 -        CT_DoLog EXTRA "Installing toolchain wrappers"
    1.11 -        CT_Pushd "${CT_PREFIX_DIR}/bin"
    1.12 -
    1.13 -        case "$CT_SYS_OS" in
    1.14 -            Darwin|FreeBSD)
    1.15 -                # wrapper does not work (when using readlink -m)
    1.16 -                CT_DoLog WARN "Forcing usage of binary tool wrapper"
    1.17 -                CT_TOOLS_WRAPPER="exec"
    1.18 -                ;;
    1.19 -        esac
    1.20 -        # Install the wrapper
    1.21 -        case "${CT_TOOLS_WRAPPER}" in
    1.22 -            script)
    1.23 -                CT_DoExecLog DEBUG install                              \
    1.24 -                                   -m 0755                              \
    1.25 -                                   "${CT_LIB_DIR}/scripts/wrapper.in"   \
    1.26 -                                   ".${CT_TARGET}-wrapper"
    1.27 -                ;;
    1.28 -            exec)
    1.29 -                CT_DoExecLog DEBUG "${CT_HOST}-gcc"                           \
    1.30 -                                   -Wall -Wextra -Werror                      \
    1.31 -                                   -Os                                        \
    1.32 -                                   "${CT_LIB_DIR}/scripts/wrapper.c"          \
    1.33 -                                   -o ".${CT_TARGET}-wrapper"
    1.34 -                if [ "${CT_DEBUG_CT}" != "y" ]; then
    1.35 -                    # If not debugging crosstool-NG, strip the wrapper
    1.36 -                    CT_DoExecLog DEBUG "${CT_HOST}-strip" ".${CT_TARGET}-wrapper"
    1.37 -                fi
    1.38 -                ;;
    1.39 -        esac
    1.40 -
    1.41 -        # Replace every tools with the wrapper
    1.42 -        # Do it unconditionally, even for those tools that happen to be shell
    1.43 -        # scripts, we don't know if they would in the end spawn a binary...
    1.44 -        # Just skip symlinks
    1.45 -        for _t in "${CT_TARGET}-"*; do
    1.46 -            if [ ! -L "${_t}" ]; then
    1.47 -                CT_DoExecLog ALL mv "${_t}" ".${_t}"
    1.48 -                CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${_t}"
    1.49 -            fi
    1.50 -        done
    1.51 -
    1.52 -        # Get rid of the wrapper, we're using hardlinks
    1.53 -        CT_DoExecLog DEBUG rm -f ".${CT_TARGET}-wrapper"
    1.54 -        CT_Popd
    1.55 -    fi
    1.56 -
    1.57      CT_DoLog EXTRA "Removing access to the build system tools"
    1.58      CT_DoExecLog DEBUG rm -rf "${CT_PREFIX_DIR}/buildtools"
    1.59