From 0961ea2954afddce9a81e02004d8b50fa5fd2ebb Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 16 May 2022 15:45:43 -0500 Subject: [PATCH] Move the mac-only option into the mac-only section. --- configure | 2 +- scripts/portability.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index f70458e8..6dc2a49b 100755 --- a/configure +++ b/configure @@ -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} diff --git a/scripts/portability.sh b/scripts/portability.sh index e59c76c5..dafde260 100644 --- a/scripts/portability.sh +++ b/scripts/portability.sh @@ -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} -- 2.39.2