Fix clang build.

Some math functions require c11 standard.
This commit is contained in:
David Carlier 2018-10-30 13:23:43 +00:00
parent 5789a7ef6d
commit 8d5748a0bb

View File

@ -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)