aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-12-13 01:17:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-12-13 01:17:26 +0000
commitd48912ffe90018ab5bd70a354cd43dfee088f551 (patch)
treec3a2fa47574cc4bfcdd75984560a716c2b5d4fd8 /rules.mk
parent73bc4221888e002d271f144492befc4252a4135b (diff)
downloadupstream-d48912ffe90018ab5bd70a354cd43dfee088f551.tar.gz
upstream-d48912ffe90018ab5bd70a354cd43dfee088f551.tar.bz2
upstream-d48912ffe90018ab5bd70a354cd43dfee088f551.zip
hopefully fix occasional uClibc/gcc build failures
SVN-Revision: 9717
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.mk b/rules.mk
index d36c994953..b7257d73cb 100644
--- a/rules.mk
+++ b/rules.mk
@@ -30,7 +30,7 @@ BUILD_SUFFIX:=$(call qstrip,$(CONFIG_BUILD_SUFFIX))
GCCV:=$(call qstrip,$(CONFIG_GCC_VERSION))
SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR})
-OPTIMIZE_FOR_CPU:=$(ARCH)
+OPTIMIZE_FOR_CPU=$(ARCH)
DL_DIR:=$(if $(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(TOPDIR)/dl)
BIN_DIR:=$(TOPDIR)/bin
@@ -53,7 +53,7 @@ ifeq ($(CONFIG_NATIVE_TOOLCHAIN),)
-include $(TOOLCHAIN_DIR)/info.mk
REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc
GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
- TARGET_CROSS?=$(OPTIMIZE_FOR_CPU)-linux-uclibc-
+ TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-linux-uclibc-)
endif
TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(STAGING_DIR_HOST)/bin:$(STAGING_DIR)/usr/bin:$(PATH)