From: Felix Fietkau Date: Sat, 10 Jan 2015 16:14:25 +0000 (+0000) Subject: build: do not assume that gcc-{ar,ranlib,nm} is usable with an external toolchain X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=60629e1695a590f5a2479c986797d372862ce09f;p=openwrt%2Fstaging%2Fneocturne.git build: do not assume that gcc-{ar,ranlib,nm} is usable with an external toolchain Signed-off-by: Felix Fietkau SVN-Revision: 43911 --- diff --git a/rules.mk b/rules.mk index 8f42fe3129..70768f055d 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