Changeset 1de945b


Ignore:
Timestamp:
2018-03-19T15:39:57Z (6 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
ac3b8ff
Parents:
a81e6a0
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    ra81e6a0 r1de945b  
    335335
    336336echo "CC=$CC" >> Makefile.settings;
    337 if echo $CC | grep -qw gcc; then
     337if echo $CC | grep -qw 'gcc\|clang'; then
    338338        # Apparently -Wall is gcc-specific?
    339         echo CFLAGS+=-Wall >> Makefile.settings
     339        echo CFLAGS+=-Wall -Wformat -Werror=format-security >> Makefile.settings
    340340fi
    341341
Note: See TracChangeset for help on using the changeset viewer.