From 60629e1695a590f5a2479c986797d372862ce09f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 10 Jan 2015 16:14:25 +0000 Subject: [PATCH] build: do not assume that gcc-{ar,ranlib,nm} is usable with an external toolchain Signed-off-by: Felix Fietkau SVN-Revision: 43911 --- rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2