scripts/build/internals.sh
changeset 1970 cdd761ad2d1a
parent 1961 e0619b242cb6
child 2004 5d6d3c28a658
     1.1 --- a/scripts/build/internals.sh	Sat May 22 17:30:44 2010 +0200
     1.2 +++ b/scripts/build/internals.sh	Sat May 22 22:01:18 2010 +0200
     1.3 @@ -58,15 +58,15 @@
     1.4                                     ".${CT_TARGET}-wrapper"
     1.5                  ;;
     1.6              exec)
     1.7 -                _t="-s"
     1.8 -                if [ "${CT_DEBUG_CT}" = "y" ]; then
     1.9 -                  _t="" # If debugging crosstool-NG, don't strip the wrapper
    1.10 -                fi
    1.11                  CT_DoExecLog DEBUG "${CT_HOST}-gcc"                           \
    1.12 -                                   -Wall -Wextra -Wunreachable-code -Werror   \
    1.13 -                                   -O3 -static ${_t}                          \
    1.14 +                                   -Wall -Wextra -Werror                      \
    1.15 +                                   -Os                                        \
    1.16                                     "${CT_LIB_DIR}/scripts/wrapper.c"          \
    1.17                                     -o ".${CT_TARGET}-wrapper"
    1.18 +                if [ "${CT_DEBUG_CT}" != "y" ]; then
    1.19 +                    # If not debugging crosstool-NG, strip the wrapper
    1.20 +                    CT_DoExecLog DEBUG "${CT_HOST}-strip" ".${CT_TARGET}-wrapper"
    1.21 +                fi
    1.22                  ;;
    1.23          esac
    1.24