From: Jo-Philipp Wich Date: Sun, 12 Sep 2010 22:19:29 +0000 (+0000) Subject: drop the usr/ prefix when scanning for libgcc.a X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=19421b67323423638ef627c38bb0592c5cea9680;p=openwrt%2Fstaging%2Fldir.git drop the usr/ prefix when scanning for libgcc.a SVN-Revision: 23042 --- diff --git a/rules.mk b/rules.mk index e07b06c2e5..c0004d8088 100644 --- a/rules.mk +++ b/rules.mk @@ -107,7 +107,7 @@ TARGET_PATH:=$(STAGING_DIR_HOST)/bin:$(PATH) TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -LIBGCC_S=$(if $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so),-L$(TOOLCHAIN_DIR)/lib -lgcc_s,$(wildcard $(TOOLCHAIN_DIR)/usr/lib/gcc/*/*/libgcc.a)) +LIBGCC_S=$(if $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so),-L$(TOOLCHAIN_DIR)/lib -lgcc_s,$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.a)) ifndef DUMP ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)