From: nbd 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: https://git.archive.openwrt.org/?a=commitdiff_plain;h=df7db657d4d8280a4777fac9ef04bca9e85e3fda;p=openwrt.git build: do not assume that gcc-{ar,ranlib,nm} is usable with an external toolchain Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43911 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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