aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-22 16:21:58 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-22 16:21:58 +0000
commit239311099ca0401b4513bfb56988930fa5da62b3 (patch)
treea110522b949829ff666eaa63c9135840d8233215 /Makefile
parent14080b58f09a0229929e5ebd01ee12bc8b047c81 (diff)
Honor the contents of the COPTS variable as custom target CFLAGS. Apparently
this is what openwrt does. (reported by Brian Capouch on the asterisk-dev list, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80257 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8ddc8ae4c..58c44eede 100644
--- 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