From: Russell Bryant Date: Tue, 8 Jun 2010 15:41:23 +0000 (+0000) Subject: Ensure CONFIG_FLAGS makes it into the build rules when doing out of tree builds. X-Git-Tag: 11.0.0-beta1~2881 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1bc2809b1c3f08c569f4be3af916fb64541ad0d;p=thirdparty%2Fasterisk.git 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/trunk@269008 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile.rules b/Makefile.rules index f76d84b15b..03bc7e81ae 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)