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.
This commit is contained in:
Yann E. MORIN" 2009-09-06 17:58:05 +02:00
parent 4a1d73f209
commit 3136ecb066

View File

@ -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"