]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pass BUILD_CFLGAS and BUILD_LDFLAGS to menuselect
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Wed, 9 May 2012 19:26:08 +0000 (19:26 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Wed, 9 May 2012 19:26:08 +0000 (19:26 +0000)
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/

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

Makefile

index 254c4db972863908b7bc91b12260d8902241e78a..b9e135e98a78e8cf5c1266664b4b78bf3e027de1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -884,7 +884,9 @@ nmenuselect: menuselect/nmenuselect menuselect-tree menuselect.makeopts
        -@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