late cpp definitions should use XCPPFLAGS, not CPPFLAGS (issue #670)

This commit is contained in:
Alex Shinn 2020-07-14 10:12:07 +09:00
parent e300659662
commit b9a76ad9d8

View file

@ -192,7 +192,7 @@ SEXP_USE_NTP_GETTIME := $(shell echo "int main(){struct ntptimeval n; ntp_gettim
endif
ifeq ($(SEXP_USE_NTP_GETTIME),1)
CPPFLAGS += -DSEXP_USE_NTPGETTIME
XCPPFLAGS += -DSEXP_USE_NTPGETTIME
endif
ifndef SEXP_USE_INTTYPES
@ -200,5 +200,5 @@ SEXP_USE_INTTYPES := $(shell echo "int main(){int_least8_t x;}" | $(CC) -fsyntax
endif
ifeq ($(SEXP_USE_INTTYPES),1)
CPPFLAGS += -DSEXP_USE_INTTYPES
XCPPFLAGS += -DSEXP_USE_INTTYPES
endif