]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Honor the contents of the COPTS variable as custom target CFLAGS. Apparently
authorRussell Bryant <russell@russellbryant.com>
Wed, 22 Aug 2007 16:21:58 +0000 (16:21 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 22 Aug 2007 16:21:58 +0000 (16:21 +0000)
this is what openwrt does.
(reported by Brian Capouch on the asterisk-dev list, patch by me)

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

Makefile

index 8ddc8ae4c931582e3b8a8ca16dc94306a57aaeea..58c44eede20ceb8c12e9d7ea2b67f13ee40e7521 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,10 @@ ifneq ($(wildcard makeopts),)
   include makeopts
 endif
 
+# Some build systems, such as the one in openwrt, like to pass custom target
+# CFLAGS in the COPTS variable.
+ASTCFLAGS+=$(COPTS)
+
 #Uncomment this to see all build commands instead of 'quiet' output
 #NOISY_BUILD=yes