[asterisk-commits] tzafrir: trunk r366002 - /trunk/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 9 14:26:14 CDT 2012


Author: tzafrir
Date: Wed May  9 14:26:08 2012
New Revision: 366002

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=366002
Log:
pass BUILD_CFLGAS and BUILD_LDFLAGS to menuselect

Allow menuselect to get its set of CFLAGS and LDFLAGS through the
environment of Make:

  make BUILD_CFLAGS="whatever" BUILD_LDFLAGS="whatever"

Review: https://reviewboard.asterisk.org/r/1907/


Modified:
    trunk/Makefile

Modified: trunk/Makefile
URL: http://svnview.digium.com/svn/asterisk/trunk/Makefile?view=diff&rev=366002&r1=366001&r2=366002
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Wed May  9 14:26:08 2012
@@ -884,7 +884,9 @@
 	- at menuselect/nmenuselect menuselect.makeopts && (echo "menuselect changes saved!"; rm -f channels/h323/Makefile.ast main/asterisk) || echo "menuselect changes NOT saved!"
 
 # options for make in menuselect/
-MAKE_MENUSELECT=CC="$(BUILD_CC)" CXX="" LD="" AR="" RANLIB="" CFLAGS="" $(MAKE) -C menuselect CONFIGURE_SILENT="--silent"
+MAKE_MENUSELECT=CC="$(BUILD_CC)" CXX="" LD="" AR="" RANLIB="" \
+		CFLAGS="$(BUILD_CFLAGS)" LDFLAGS="$(BUILD_LDFLAGS)" \
+		$(MAKE) -C menuselect CONFIGURE_SILENT="--silent"
 
 menuselect/menuselect: menuselect/makeopts
 	+$(MAKE_MENUSELECT) menuselect




More information about the asterisk-commits mailing list