[asterisk-addons-commits] tilghman: branch 1.4 r932 - /branches/1.4/Makefile.rules
SVN commits to the Asterisk addons project
asterisk-addons-commits at lists.digium.com
Wed May 27 16:51:31 CDT 2009
Author: tilghman
Date: Wed May 27 16:51:27 2009
New Revision: 932
URL: http://svn.asterisk.org/svn-view/asterisk-addons?view=rev&rev=932
Log:
DONT_OPTIMIZE is a Makefile directive and needs to be interpreted before the compiler starts.
Modified:
branches/1.4/Makefile.rules
Modified: branches/1.4/Makefile.rules
URL: http://svn.asterisk.org/svn-view/asterisk-addons/branches/1.4/Makefile.rules?view=diff&rev=932&r1=931&r2=932
==============================================================================
--- branches/1.4/Makefile.rules (original)
+++ branches/1.4/Makefile.rules Wed May 27 16:51:27 2009
@@ -27,7 +27,8 @@
CMD_PREFIX=
endif
-ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
+# Addons needs to scan flags from the header file
+ifeq ($(shell $(GREP) -c DONT_OPTIMIZE ${includedir}/asterisk/buildopts.h),0)
# More GSM codec optimization
# Uncomment to enable MMXTM optimizations for x86 architecture CPU's
# which support MMX instructions. This should be newer pentiums,
@@ -36,6 +37,8 @@
OPTIMIZE?=-O6
ASTCFLAGS+=$(OPTIMIZE)
+else
+ASTCFLAGS+=-DDONT_OPTIMIZE
endif
%.o: %.c
More information about the asterisk-addons-commits
mailing list