ensure that cross-compiler info is removed from the enviroment before configuring...
[asterisk/asterisk.git] / Makefile
index dd6a9ff..e3ef712 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -647,7 +647,7 @@ menuselect: menuselect/menuselect menuselect-tree
        -@menuselect/menuselect $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
 
 menuselect/menuselect: makeopts menuselect/menuselect.c menuselect/menuselect_curses.c menuselect/menuselect_stub.c menuselect/menuselect.h menuselect/linkedlists.h makeopts
-       @$(MAKE) -C menuselect
+       @unset CC LD AR RANLIB && $(MAKE) -C menuselect
 
 menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml sounds/sounds.xml build_tools/embed_modules.xml
        @echo "Generating input for menuselect ..."