Move the mac-only option into the mac-only section.

This commit is contained in:
Rob Landley 2022-05-16 15:45:43 -05:00
parent 0476d6d1e2
commit 0961ea2954
2 changed files with 2 additions and 1 deletions

2
configure vendored
View File

@ -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}

View File

@ -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}