diff -r e0619b242cb6 -r cdd761ad2d1a scripts/build/internals.sh --- a/scripts/build/internals.sh Sat May 22 17:30:44 2010 +0200 +++ b/scripts/build/internals.sh Sat May 22 22:01:18 2010 +0200 @@ -58,15 +58,15 @@ ".${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 DEBUG "${CT_HOST}-gcc" \ - -Wall -Wextra -Wunreachable-code -Werror \ - -O3 -static ${_t} \ + -Wall -Wextra -Werror \ + -Os \ "${CT_LIB_DIR}/scripts/wrapper.c" \ -o ".${CT_TARGET}-wrapper" + if [ "${CT_DEBUG_CT}" != "y" ]; then + # If not debugging crosstool-NG, strip the wrapper + CT_DoExecLog DEBUG "${CT_HOST}-strip" ".${CT_TARGET}-wrapper" + fi ;; esac