Use CPPFLAGS instead of CXXFLAGS for the _XOPEN_SOURCE define

This commit is contained in:
Maxime Coste 2016-10-13 00:19:27 +01:00
parent f7e2bfd76f
commit e384e7263c

View File

@ -50,7 +50,7 @@ else ifeq ($(os),DragonFly)
CPPFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
else ifneq (,$(findstring CYGWIN,$(os)))
CXXFLAGS += -D_XOPEN_SOURCE=700
CPPFLAGS += -D_XOPEN_SOURCE=700
LIBS += -lncursesw -lboost_regex -ldbghelp
else
LIBS += -lncursesw -lboost_regex