]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 269008 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Tue, 8 Jun 2010 15:41:45 +0000 (15:41 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 8 Jun 2010 15:41:45 +0000 (15:41 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r269008 | russell | 2010-06-08 10:41:23 -0500 (Tue, 08 Jun 2010) | 5 lines

  Ensure CONFIG_FLAGS makes it into the build rules when doing out of tree builds.

  (closes issue #16685)
  Reported by: pprindeville
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269009 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile.rules

index 89c5fc113782b8fd1eabbd038bbd9f55905070db..2d64392f5c487cde559ee314a689caf1393ff6ac 100644 (file)
@@ -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)