diff options
author | dequis <dx@dxzone.com.ar> | 2018-03-19 12:39:57 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2018-03-19 12:39:57 -0300 |
commit | 1de945b2b2ad5506f7909ced21f923ea8a62a09c (patch) | |
tree | c6937e24d5b0299eeeab5db66b074703bd5a18ac | |
parent | a81e6a05515a4df80a52d8b5aa848646e73e66c6 (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.
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |