diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-08-30 00:35:58 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-08-30 00:35:58 +0200 |
commit | b7b6314a812914c74445c52f0a8e1f543e36b72a (patch) | |
tree | c766b8933bc3f4d480e10fcdd86f9ac62a430607 /scripts/build/internals.sh | |
parent | 78d89b928b1301c84e3983b3b3fa2bebec919594 (diff) | |
parent | d811941c9a8222476995fac6805ca0ee188dad1e (diff) | |
download | crosstool-ng-b7b6314a812914c74445c52f0a8e1f543e36b72a.tar.gz crosstool-ng-b7b6314a812914c74445c52f0a8e1f543e36b72a.tar.bz2 crosstool-ng-b7b6314a812914c74445c52f0a8e1f543e36b72a.zip |
Merge the C wrapper.
Diffstat (limited to 'scripts/build/internals.sh')
-rw-r--r-- | scripts/build/internals.sh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index a920c502..cf869a1a 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -46,9 +46,25 @@ do_finish() { CT_DoLog EXTRA "Installing toolchain wrappers" CT_Pushd "${CT_PREFIX_DIR}/bin" - # Copy the wrapper - CT_DoExecLog DEBUG install -m 0755 "${CT_LIB_DIR}/scripts/wrapper.in" \ - ".${CT_TARGET}-wrapper" + # Install the wrapper + case "${CT_TOOLS_WRAPPER}" in + script) + CT_DoExecLog DEBUG install \ + -m 0755 \ + "${CT_LIB_DIR}/scripts/wrapper.in" \ + ".${CT_TARGET}-wrapper" + ;; + exec) + _t="-s" + if [ "${CT_DEBUG_CT}" = "y" ]; then + _t="" # If debugging crosstool-NG, don't strip the wrapper + fi + CT_DoExecLog "${HOST_CC}" \ + -Wall -Wextra -Wunreachable-code -Werror \ + -O3 -static ${_t} \ + -o ".${CT_TARGET}-wrapper" + ;; + esac # Replace every tools with the wrapper # Do it unconditionally, even for those tools that happen to be shell |