ShaneAnderson writes in Bug 565:
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Nov 2005 02:52:25 +0000 (02:52 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 29 Nov 2005 02:52:25 +0000 (02:52 -0000)
need to include .config file before setting CROSS otherwise
TARGET_ARCH isnt set properly

Rules.mak

index 6c447264408b03414535256068622e83bb264fa2..848ae97777d185044c4d391bd80c32de4429ca54 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
 
+# Pull in the user's busybox configuration
+ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
+-include $(top_builddir)/.config
+endif
+
 #--------------------------------------------------------
 PROG      := busybox
 MAJOR_VERSION   :=1
@@ -108,11 +113,6 @@ TARGET_ARCH:=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \
                )
 endif
 
-# Pull in the user's busybox configuration
-ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
--include $(top_builddir)/.config
-endif
-
 # A nifty macro to make testing gcc features easier
 check_gcc=$(shell \
        if [ "$(1)" != "" ]; then \