From e00372a54026315e22ab7412b25148d2af226336 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Sun, 16 Dec 2012 00:18:07 -0500 Subject: [PATCH] makefile: define ARCH before including make/tools.mk ARCH is required in order to pick up the right versions of the tools for each architecture. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f4616023d..713c105c9 100644 --- a/Makefile +++ b/Makefile @@ -58,14 +58,17 @@ export V1 := $(AT) else ifeq ($(V), 1) endif +# Make sure we know a few things about the architecture before including +# the tools.mk to ensure that we download/install the right tools. +UNAME := $(shell uname) +ARCH := $(shell uname -m) + include $(ROOT_DIR)/make/tools.mk # We almost need to consider autoconf/automake instead of this # I don't know if windows supports uname :-( QT_SPEC=win32-g++ UAVOBJGENERATOR="$(BUILD_DIR)/ground/uavobjgenerator/debug/uavobjgenerator.exe" -UNAME := $(shell uname) -ARCH := $(shell uname -m) ifeq ($(UNAME), Linux) QT_SPEC=linux-g++ UAVOBJGENERATOR="$(BUILD_DIR)/ground/uavobjgenerator/uavobjgenerator"