aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-08 15:41:23 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-08 15:41:23 +0000
commitdbc8563f355c6076094bb0c21b22c00a555feec8 (patch)
treedfa7c2191e895307bae767d6290f6569b74985ca /Makefile.rules
parent48a9dbecbfd574688bff9713ec4e376387707942 (diff)
Ensure CONFIG_FLAGS makes it into the build rules when doing out of tree builds.
(closes issue #16685) Reported by: pprindeville git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269008 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index f76d84b15..03bc7e81a 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -49,6 +49,10 @@ else
_ASTCFLAGS+=-O0
endif
+ifeq ($(findstring $(CONFIG_CFLAGS),$(_ASTCFLAGS)),)
+ _ASTCFLAGS+=$(CONFIG_CFLAGS)
+endif
+
# shortcuts for common combinations of flags; these must be recursively expanded so that
# per-target settings will be applied
CC_CFLAGS=$(PTHREAD_CFLAGS) $(_ASTCFLAGS) $(ASTCFLAGS)