summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan-Erik Rediger <janerik@fnordig.de>2015-04-16 22:51:32 +0200
committerJan-Erik Rediger <janerik@fnordig.de>2015-04-16 22:51:32 +0200
commitd8145d79ce715054980938c751067ebaa541573c (patch)
treefdd570805d0bc048acc981caa4b6a3b736bbf8e8 /Makefile
parent31436c33ac0cc68f288ddac6addb1f3618985c52 (diff)
Always compile with C99 standard.
Turns out: gnu9x defines `unix` to 1, making it unusable as a variable name.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index beb7e2b..32ffe4b 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
OPTIMIZATION?=-O3
WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
DEBUG?= -g -ggdb
-REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)
+REAL_CFLAGS=$(OPTIMIZATION) -fPIC -std=c99 -pedantic $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)
REAL_LDFLAGS=$(LDFLAGS) $(ARCH)
DYLIBSUFFIX=so
@@ -133,7 +133,7 @@ check: hiredis-test
kill `cat /tmp/hiredis-test-redis.pid`
.c.o:
- $(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $<
+ $(CC) -c $(REAL_CFLAGS) $<
clean:
rm -rf $(DYLIBNAME) $(STLIBNAME) $(TESTS) $(PKGCONFNAME) examples/hiredis-example* *.o *.gcda *.gcno *.gcov