Move the mac-only option into the mac-only section.
This commit is contained in:
parent
0476d6d1e2
commit
0961ea2954
2
configure
vendored
2
configure
vendored
@ -12,7 +12,7 @@ then
|
||||
fi
|
||||
|
||||
# Warn about stuff, disable stupid warnings, be 8-bit clean for utf8.
|
||||
CFLAGS+=" -Wall -Wundef -Werror=implicit-function-declaration -Wno-char-subscripts -Wno-deprecated-declarations -Wno-pointer-sign -Wno-string-plus-int -funsigned-char"
|
||||
CFLAGS+=" -Wall -Wundef -Werror=implicit-function-declaration -Wno-char-subscripts -Wno-pointer-sign -Wno-string-plus-int -funsigned-char"
|
||||
|
||||
# Set default values if variable not already set
|
||||
: ${CC:=cc} ${HOSTCC:=cc} ${GENDIR:=generated} ${KCONFIG_CONFIG:=.config}
|
||||
|
@ -16,6 +16,7 @@ fi
|
||||
# Tell linker to do dead code elimination at function level
|
||||
if [ "$(uname)" == "Darwin" ]
|
||||
then
|
||||
CFLAGS+=" -Wno-deprecated-declarations"
|
||||
: ${LDOPTIMIZE:=-Wl,-dead_strip} ${STRIP:=strip}
|
||||
else
|
||||
: ${LDOPTIMIZE:=-Wl,--gc-sections -Wl,--as-needed} ${STRIP:=strip -s -R .note* -R .comment}
|
||||
|
Loading…
Reference in New Issue
Block a user