summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2018-10-30 13:23:43 +0000
committerDavid Carlier <devnexen@gmail.com>2018-10-30 13:23:43 +0000
commit6534b3e09ed23324e22a4b57382707f52e22ee81 (patch)
treeaadf7a032fbb7a1a9a1f97a6d8dd835997df930a /src/Makefile
parent0c875c7751e3672f20225ab3b20fdb0322a8e4ad (diff)
downloadredis-6534b3e09ed23324e22a4b57382707f52e22ee81.tar.gz
Fix clang build.
Some math functions require c11 standard.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 912cbc19f..eec172d0e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -20,7 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua
NODEPS:=clean distclean
# Default settings
-STD=-std=c99 -pedantic -DREDIS_STATIC=''
+ifneq ($(CC),clang)
+ STD=-std=c99 -pedantic -DREDIS_STATIC=''
+else
+ STD=-std=c11 -pedantic -DREDIS_STATIC=''
+endif
WARN=-Wall -W -Wno-missing-field-initializers
OPT=$(OPTIMIZATION)