[asterisk-bugs] [Asterisk 0017464]: When cross-compiling, menuselect is built for target, not host architecture

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jun 28 14:07:26 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17464 
====================================================================== 
Reported By:                pprindeville
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17464
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 267925 
Request Review:              
====================================================================== 
Date Submitted:             2010-06-03 23:32 CDT
Last Modified:              2010-06-28 14:07 CDT
====================================================================== 
Summary:                    When cross-compiling, menuselect is built for
target, not host architecture
Description: 
When building asterisk and supplying both CC and CC_FOR_BUILD, menuselect
gets compiled with target tools, not the host tools.


====================================================================== 

---------------------------------------------------------------------- 
 (0123968) tilghman (administrator) - 2010-06-28 14:07
 https://issues.asterisk.org/view.php?id=17464#c123968 
---------------------------------------------------------------------- 
Make a few simple changes, and it compiles, once again showing that your
build environment is faulty:

Index: package/asterisk/asterisk.mk
===================================================================
--- package/asterisk/asterisk.mk        (revision 4032)
+++ package/asterisk/asterisk.mk        (working copy)
@@ -212,7 +212,6 @@
                $(ASTERISK_CONFIGURE_ENV) \
                CC_FOR_BUILD=$(HOSTCC) \
                BUILD_CC=$(HOSTCC) \
-               CC=$(TARGET_CC) \
                CFLAGS='$(TARGET_CFLAGS)' \
                LD=$(TARGET_CROSS)ld \
                CPP=$(TARGET_CROSS)cpp \
@@ -237,14 +236,14 @@

 $(ASTERISK_DIR)/$(ASTERISK_BINARY): $(ASTERISK_DIR)/.configured
        cp $(STAGING_DIR)/include/dlfcn.h
$(STAGING_DIR)/usr/include/dlfcn.h # Can I do this?
-       $(MAKE) -C $(ASTERISK_DIR) $(TARGET_CONFIGURE_OPTS) \
+       $(MAKE) -C $(ASTERISK_DIR) \
                GLOBAL_MAKEOPTS=$(BASE_DIR)/asterisk.makeopts \
                USER_MAKEOPTS= \
                ASTVARRUNDIR=/var/run/asterisk HOSTCC=gcc

 $(TARGET_DIR)/$(ASTERISK_TARGET_BINARY):
$(ASTERISK_DIR)/$(ASTERISK_BINARY)
        # mkdir -p $(TARGET_DIR)/$(ASTERISK_MODULE_DIR)
-       $(MAKE1) -C $(ASTERISK_DIR) $(TARGET_CONFIGURE_OPTS) \
+       $(MAKE1) -C $(ASTERISK_DIR) \
                GLOBAL_MAKEOPTS=$(BASE_DIR)/asterisk.makeopts \
                USER_MAKEOPTS= \
                ASTVARRUNDIR=/var/run/asterisk HOSTCC=gcc \ 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-28 14:07 tilghman       Note Added: 0123968                          
======================================================================




More information about the asterisk-bugs mailing list