summaryrefslogtreecommitdiff
path: root/make/template/main.mk
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-09-17 03:04:20 +0100
committerPeter Powell <petpow@saberuk.com>2016-09-17 03:07:44 +0100
commitfff28e7ff0cd33935e64901678941f3592537608 (patch)
treebac5d8083a1cd9feffe308d5d5f281e6677dcc8e /make/template/main.mk
parentd8a41d73a329b72a7d997a1808007f5de38b68d7 (diff)
Use the environment's CPPFLAGS as well as its CXXFLAGS.
Diffstat (limited to 'make/template/main.mk')
-rw-r--r--make/template/main.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 818b4139d..c2babe8f6 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -123,9 +123,9 @@ FOOTER = finishmessage
CORECXXFLAGS += -DINSPIRCD_STATIC
@ENDIF
-# Add the users CXXFLAGS to the base ones to allow them to override
-# things like -Wfatal-errors if they wish to.
-CORECXXFLAGS += $(CXXFLAGS)
+# Add the users CPPFLAGS/CXXFLAGS to the base ones to allow them to
+# override things like -Wfatal-errors if they wish to.
+CORECXXFLAGS += $(CPPFLAGS) $(CXXFLAGS)
@DO_EXPORT CXX CORECXXFLAGS LDLIBS PICLDFLAGS INSPIRCD_VERBOSE SOCKETENGINE CORELDFLAGS
@DO_EXPORT SOURCEPATH BUILDPATH INSPIRCD_STATIC