Fix CSTD.

This commit is contained in:
Roy Marples 2008-02-19 17:51:20 +00:00
parent 42dd9965cc
commit 8d61a07f5e

View File

@ -7,7 +7,7 @@ CFLAGS?= -O2 -pipe
CSTD?= c99
_CSTD_SH= if test -n "${CSTD}"; then echo "-std=${CSTD}"; else echo ""; fi
_CSTD!= ${_CSTD_SH}
CFLAGS+= ${_CSTD}$(shell _CSTD_SH)
CFLAGS+= ${_CSTD}$(shell ${_CSTD_SH})
# GNU Make way of detecting gcc flags we can use
check_gcc=$(shell if ${CC} $(1) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \