diff options
author | Titus von Boxberg <titus@v9g.de> | 2010-05-22 22:01:18 +0200 |
---|---|---|
committer | Titus von Boxberg <titus@v9g.de> | 2010-05-22 22:01:18 +0200 |
commit | b0c3365d150e97e49c28b9b2ebb9482aa4dcce07 (patch) | |
tree | 1d44330fde92ea13d72ee566866d3241181e630b /scripts/build/internals.sh | |
parent | 7e0d63c96983a233c27f7d017ea4e8095abd5c81 (diff) | |
download | crosstool-ng-b0c3365d150e97e49c28b9b2ebb9482aa4dcce07.tar.gz crosstool-ng-b0c3365d150e97e49c28b9b2ebb9482aa4dcce07.tar.bz2 crosstool-ng-b0c3365d150e97e49c28b9b2ebb9482aa4dcce07.zip |
scripts/build/internals.sh: compile wrapper with portable options.
static linking is not possible on MacOS, and unnessecary on other systems.
The old optimization and warning flags crash the gcc on MacOS
and (imho) are a bit overdone for this software.
Diffstat (limited to 'scripts/build/internals.sh')
-rw-r--r-- | scripts/build/internals.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index d5fa68f2..e23b60d6 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -58,15 +58,15 @@ do_finish() { ".${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 |