aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2018-03-19 12:39:57 -0300
committerdequis <dx@dxzone.com.ar>2018-03-19 12:39:57 -0300
commit1de945b2b2ad5506f7909ced21f923ea8a62a09c (patch)
treec6937e24d5b0299eeeab5db66b074703bd5a18ac /configure
parenta81e6a05515a4df80a52d8b5aa848646e73e66c6 (diff)
configure: Add -Wformat -Werror=format-security to default CFLAGS
Matches debian build scripts. Also expands the condition to gcc or clang. I'd rather remove this, apparently it exists because some opensolaris compiler didn't have -Wall which seems absurd to me, but whatever.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 643e70f1..093fbf3d 100755
--- a/configure
+++ b/configure
@@ -334,9 +334,9 @@ else
fi
echo "CC=$CC" >> Makefile.settings;
-if echo $CC | grep -qw gcc; then
+if echo $CC | grep -qw 'gcc\|clang'; then
# Apparently -Wall is gcc-specific?
- echo CFLAGS+=-Wall >> Makefile.settings
+ echo CFLAGS+=-Wall -Wformat -Werror=format-security >> Makefile.settings
fi
if [ -z "$LD" ]; then