summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-10 16:14:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-10 16:14:25 +0000
commit60629e1695a590f5a2479c986797d372862ce09f (patch)
tree7f5fad196b336649591dd4ae9e8a2547c43fc934
parent9229b34d9223aeaa9b2bdb6f1164e80abf39d1ac (diff)
downloadmtk-20170518-60629e1695a590f5a2479c986797d372862ce09f.zip
mtk-20170518-60629e1695a590f5a2479c986797d372862ce09f.tar.gz
mtk-20170518-60629e1695a590f5a2479c986797d372862ce09f.tar.bz2
build: do not assume that gcc-{ar,ranlib,nm} is usable with an external toolchain
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43911
-rw-r--r--rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index 8f42fe3..70768f0 100644
--- a/rules.mk
+++ b/rules.mk
@@ -192,7 +192,7 @@ HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include -I$(STAGING_DIR_HOST)/usr/include
HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS)
HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib -L$(STAGING_DIR_HOST)/usr/lib
-ifeq ($(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_6),)
+ifeq ($(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_6)$(CONFIG_EXTERNAL_TOOLCHAIN),)
TARGET_AR:=$(TARGET_CROSS)gcc-ar
TARGET_RANLIB:=$(TARGET_CROSS)gcc-ranlib
TARGET_NM:=$(TARGET_CROSS)gcc-nm