aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-04 19:38:57 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-04 19:38:57 +0000
commitdd34cec80cb9dc70c3e42dfdeb2313588c2cfc0c (patch)
treeb3c14ec8974ef5bae1cac4d6575adf306dcfe72f /Makefile
parentd5907e380b154409ba7c3b7cd527cbd1730853a7 (diff)
Build menuselect with the build environment's compiler, not the host (target)'s compiler.
(closes issue #17464) Reported by: pprindeville Tested by: tilghman git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268050 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 021eb8041..6a6eae5d7 100644
--- 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