Commit 6534b3e0 authored by David Carlier's avatar David Carlier
Browse files

Fix clang build.

Some math functions require c11 standard.
parent 0c875c77
...@@ -20,7 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua ...@@ -20,7 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua
NODEPS:=clean distclean NODEPS:=clean distclean
# Default settings # 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 WARN=-Wall -W -Wno-missing-field-initializers
OPT=$(OPTIMIZATION) OPT=$(OPTIMIZATION)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment