summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-05-04 08:54:52 +0100
committerRoy Marples <roy@marples.name>2017-05-04 08:54:52 +0100
commit7e07ba50759093a38497495acd36deb21848aae8 (patch)
tree4c715e475776fc98cff67220b3d15f03fb40aea3 /configure
parent23c2a5000d18e77732ef5ad83291db815b4e0db6 (diff)
downloaddhcpcd-7e07ba50759093a38497495acd36deb21848aae8.tar.xz
When using gcc, add the -Wlogical-op flag when debugging.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index fbafab2c..b2f646ee 100755
--- a/configure
+++ b/configure
@@ -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