diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-09-06 17:58:05 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-09-06 17:58:05 +0200 |
commit | 3136ecb066a9f51bcdc795b0b940851c851f5d27 (patch) | |
tree | ee0ac4925fae846c65aa8fdf0cdeacd4a24ed68a /scripts/build/internals.sh | |
parent | 4a1d73f20921fe4b4dc5ee5f71bdcc94fd996cfe (diff) | |
download | crosstool-ng-3136ecb066a9f51bcdc795b0b940851c851f5d27.tar.gz crosstool-ng-3136ecb066a9f51bcdc795b0b940851c851f5d27.tar.bz2 crosstool-ng-3136ecb066a9f51bcdc795b0b940851c851f5d27.zip |
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.
Diffstat (limited to 'scripts/build/internals.sh')
-rw-r--r-- | scripts/build/internals.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index 093636ae..144cb873 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -8,9 +8,6 @@ do_finish() { 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 @@ do_finish() { 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 @@ do_finish() { 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" |