scripts/build/internals.sh
changeset 1761 88020b2c3246
parent 1503 7dcef3fb5e8f
child 1817 c9654a027900
     1.1 --- a/scripts/build/internals.sh	Sun Aug 30 19:54:51 2009 +0200
     1.2 +++ b/scripts/build/internals.sh	Tue Jan 12 19:24:03 2010 +0100
     1.3 @@ -8,9 +8,6 @@
     1.4  
     1.5      CT_DoStep INFO "Cleaning-up the toolchain's directory"
     1.6  
     1.7 -    CT_DoLog EXTRA "Removing access to the build system tools"
     1.8 -    CT_DoExecLog DEBUG rm -rf "${CT_PREFIX_DIR}/buildtools"
     1.9 -
    1.10      if [ "${CT_BARE_METAL}" != "y" ]; then
    1.11          CT_DoLog EXTRA "Installing the populate helper"
    1.12          sed -r -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \
    1.13 @@ -58,11 +55,11 @@
    1.14                  if [ "${CT_DEBUG_CT}" = "y" ]; then
    1.15                    _t="" # If debugging crosstool-NG, don't strip the wrapper
    1.16                  fi
    1.17 -                CT_DoExecLog "${HOST_CC}"                               \
    1.18 -                             -Wall -Wextra -Wunreachable-code -Werror   \
    1.19 -                             -O3 -static ${_t}                          \
    1.20 -                             "${CT_LIB_DIR}/scripts/wrapper.c"          \
    1.21 -                             -o ".${CT_TARGET}-wrapper"
    1.22 +                CT_DoExecLog DEBUG "${CT_HOST}-gcc"                           \
    1.23 +                                   -Wall -Wextra -Wunreachable-code -Werror   \
    1.24 +                                   -O3 -static ${_t}                          \
    1.25 +                                   "${CT_LIB_DIR}/scripts/wrapper.c"          \
    1.26 +                                   -o ".${CT_TARGET}-wrapper"
    1.27                  ;;
    1.28          esac
    1.29  
    1.30 @@ -82,6 +79,9 @@
    1.31          CT_Popd
    1.32      fi
    1.33  
    1.34 +    CT_DoLog EXTRA "Removing access to the build system tools"
    1.35 +    CT_DoExecLog DEBUG rm -rf "${CT_PREFIX_DIR}/buildtools"
    1.36 +
    1.37      # Remove the generated documentation files
    1.38      if [ "${CT_REMOVE_DOCS}" = "y" ]; then
    1.39          CT_DoLog EXTRA "Removing installed documentation"