mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-23 20:45:17 +00:00
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.
This commit is contained in:
parent
7e0d63c969
commit
b0c3365d15
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user