# HG changeset patch # User "Yann E. MORIN" # Date 1252252685 -7200 # Node ID ecf0e1c4f2f259ac24b534241e72e31d90370b9f # Parent 9a2838d971d40408127af470c7dac1fbb45a80f9 tools wrapper: fix building Remove the build tools only after the wrapper is built. Use the corect C compiler to build the tools wrapper. Use the correct log level. diff -r 9a2838d971d4 -r ecf0e1c4f2f2 scripts/build/internals.sh --- a/scripts/build/internals.sh Sun Sep 06 16:49:54 2009 +0200 +++ b/scripts/build/internals.sh Sun Sep 06 17:58:05 2009 +0200 @@ -8,9 +8,6 @@ CT_DoStep INFO "Cleaning-up the toolchain's directory" - CT_DoLog EXTRA "Removing access to the build system tools" - CT_DoExecLog DEBUG rm -rf "${CT_PREFIX_DIR}/buildtools" - if [ "${CT_BARE_METAL}" != "y" ]; then CT_DoLog EXTRA "Installing the populate helper" sed -r -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \ @@ -58,11 +55,11 @@ 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} \ - "${CT_LIB_DIR}/scripts/wrapper.c" \ - -o ".${CT_TARGET}-wrapper" + CT_DoExecLog DEBUG "${CT_HOST}-gcc" \ + -Wall -Wextra -Wunreachable-code -Werror \ + -O3 -static ${_t} \ + "${CT_LIB_DIR}/scripts/wrapper.c" \ + -o ".${CT_TARGET}-wrapper" ;; esac @@ -82,6 +79,9 @@ CT_Popd fi + CT_DoLog EXTRA "Removing access to the build system tools" + CT_DoExecLog DEBUG rm -rf "${CT_PREFIX_DIR}/buildtools" + # Remove the generated documentation files if [ "${CT_REMOVE_DOCS}" = "y" ]; then CT_DoLog EXTRA "Removing installed documentation"