summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-09-09 16:01:29 +0200
committerantirez <antirez@gmail.com>2016-09-09 16:01:29 +0200
commit56dba3adcc7f88f254c30d68448e5457c0463d57 (patch)
treec18f6a62603c068265baa14304a50b007043e9a8
parentd35deb2327fb6caabf509f243ff1a12bc3c5c929 (diff)
downloadredis-56dba3adcc7f88f254c30d68448e5457c0463d57.tar.gz
Example modules: Add C99 standard to cflags.
-rw-r--r--src/modules/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/Makefile b/src/modules/Makefile
index 1a52d65b0..3cd51023f 100644
--- a/src/modules/Makefile
+++ b/src/modules/Makefile
@@ -4,10 +4,10 @@ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
# Compile flags for linux / osx
ifeq ($(uname_S),Linux)
- SHOBJ_CFLAGS ?= -fno-common -g -ggdb
+ SHOBJ_CFLAGS ?= -fno-common -g -ggdb -std=c99
SHOBJ_LDFLAGS ?= -shared
else
- SHOBJ_CFLAGS ?= -dynamic -fno-common -g -ggdb
+ SHOBJ_CFLAGS ?= -dynamic -fno-common -g -ggdb -std=c99
SHOBJ_LDFLAGS ?= -bundle -undefined dynamic_lookup
endif