aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorkatherine <shmibs@airen-no-jikken.icu>2019-05-26 18:23:25 -0700
committerkatherine <shmibs@airen-no-jikken.icu>2019-05-26 18:23:25 -0700
commit79985ce2ecc8630a2c1ca48a8eef61e3a69c3fdd (patch)
tree72fed2ee0bc972a1ce57e2edfc2fc7a81c983c01 /configure
parent551a8b3623eb9d89d850fed7a75c776d64f0cd4f (diff)
downloadconfconf-79985ce2ecc8630a2c1ca48a8eef61e3a69c3fdd.tar.gz
add -pedantic to debug build
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 26a510e..467c469 100755
--- a/configure
+++ b/configure
@@ -11,7 +11,7 @@ objects=`find $srcdir -type f -name '*.c' | sed -e "s/$srcdir\/\(.*\).c/\1.o/"`
cc='cc'
cflags='-Wall -O2'
-cflagsdebug='-Wall -ggdb3 -O0 -DDEBUG'
+cflagsdebug='-std=c99 -Wall -pedantic -ggdb3 -O0 -DDEBUG'
prefix='/usr/local'
@@ -29,6 +29,10 @@ if [ ! `2>/dev/null which gcc` ]; then
dgen='clang'
fi
+if [ -f 'Makefile' ]; then
+ make clean
+fi
+
{
printf %s\\n '.POSIX:'
printf %s\\n '.SUFFIXES:'