]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Build menuselect with the build environment's compiler, not the host (target)'s compiler.
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 4 Jun 2010 19:38:57 +0000 (19:38 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 4 Jun 2010 19:38:57 +0000 (19:38 +0000)
(closes issue #17464)
 Reported by: pprindeville
 Tested by: tilghman

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

Makefile
makeopts.in

index 021eb80418eb73e881a90b71302e3a0eab2d05f8..6a6eae5d788a1b489d6763cb688533c66dc98166 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,7 @@ export CXX
 export AR
 export RANLIB
 export HOST_CC
+export BUILD_CC
 export STATIC_BUILD
 export INSTALL
 export DESTDIR
@@ -783,7 +784,7 @@ 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="$(HOST_CC)" CXX="$(CXX)" LD="" AR="" RANLIB="" CFLAGS="" $(MAKE) -C menuselect CONFIGURE_SILENT="--silent"
+MAKE_MENUSELECT=CC="$(BUILD_CC)" CXX="" LD="" AR="" RANLIB="" CFLAGS="" $(MAKE) -C menuselect CONFIGURE_SILENT="--silent"
 
 menuselect/menuselect: menuselect/makeopts
        +$(MAKE_MENUSELECT) menuselect
index eb667fd5cebc7598dbcad66bd7e9501e903f9f81..7a439c6498b361301b3c587252cbe0deb76c2ee5 100644 (file)
@@ -4,6 +4,7 @@
 
 CC=@PTHREAD_CC@
 HOST_CC=cc
+BUILD_CC=cc
 CXX=@CXX@
 
 INSTALL=@INSTALL@