From 0bc343f07f14e5995b0d8d92f57141993e2003d4 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 1 Jul 2022 06:28:11 -0500 Subject: [PATCH] Prevent configure from appending to $CFLAGS twice when it gets read twice. --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6dc2a49b..05565a83 100755 --- a/configure +++ b/configure @@ -12,7 +12,8 @@ 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-pointer-sign -Wno-string-plus-int -funsigned-char" +[ "${CFLAGS/-funsigned-char//}" == "$CFLAGS" ] && + 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} -- 2.39.2