summaryrefslogtreecommitdiff
path: root/Make.rules
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-05 17:25:59 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-07-05 17:25:59 +0300
commit01c1fae327c7ad5f3ed03513e7032d4875d26eb1 (patch)
treee697e47ec6277bfdd6e14e914ce6524b52d68fc6 /Make.rules
parent26558bd126a611ca3d1490c0f27c30bf5b99114c (diff)
downloadapk-tools-01c1fae327c7ad5f3ed03513e7032d4875d26eb1.tar.gz
apk-tools-01c1fae327c7ad5f3ed03513e7032d4875d26eb1.tar.bz2
apk-tools-01c1fae327c7ad5f3ed03513e7032d4875d26eb1.tar.xz
apk-tools-01c1fae327c7ad5f3ed03513e7032d4875d26eb1.zip
build: honor CPPFLAGS
Diffstat (limited to 'Make.rules')
-rw-r--r--Make.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/Make.rules b/Make.rules
index 9fd4862..0f072d1 100644
--- a/Make.rules
+++ b/Make.rules
@@ -174,8 +174,8 @@ if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \
#####
# Handle options to gcc.
-c_flags = -Wp,-MD,$(depfile),-MT,$@ $(CFLAGS_ALL) $(CFLAGS_EXTRA) \
- $(CFLAGS_$(notdir $@))
+c_flags = -Wp,-MD,$(depfile),-MT,$@ $(CPPFLAGS) \
+ $(CFLAGS_ALL) $(CFLAGS_EXTRA) $(CFLAGS_$(notdir $@))
ld_flags = $(LDFLAGS_ALL) $(LDFLAGS_EXTRA) $(LDFLAGS_$(notdir $@))
#####