diff options
| author | Roy Marples <roy@marples.name> | 2017-05-04 08:54:52 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-05-04 08:54:52 +0100 |
| commit | 7e07ba50759093a38497495acd36deb21848aae8 (patch) | |
| tree | 4c715e475776fc98cff67220b3d15f03fb40aea3 /configure | |
| parent | 23c2a5000d18e77732ef5ad83291db815b4e0db6 (diff) | |
| download | dhcpcd-7e07ba50759093a38497495acd36deb21848aae8.tar.xz | |
When using gcc, add the -Wlogical-op flag when debugging.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -380,6 +380,11 @@ EOF sunos*);; *) echo "CFLAGS+= -Wstrict-overflow" >>$CONFIG_MK;; esac + + # Turn on extra per compiler debugging + case "$CC" in + *gcc*) echo "CFLAGS+= -Wlogical-op" >>$CONFIG_MK;; + esac else echo "CPPFLAGS+= -DNDEBUG" >>$CONFIG_MK fi |
