add -L$(TOOLCHAIN_DIR)/lib to the LIBGCC_S variable, if necessary
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 1 Aug 2009 21:29:00 +0000 (21:29 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 1 Aug 2009 21:29:00 +0000 (21:29 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17082 3c298f89-4303-0410-b956-a3cf2f4a3e73

rules.mk

index 88f64a5..6ed8298 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -71,7 +71,7 @@ TARGET_PATH_PKG:=$(STAGING_DIR)/host/bin:$(TARGET_PATH)
 TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3)
 TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
 TARGET_LDFLAGS:=-L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
-LIBGCC_S=$(if $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so),-lgcc_s,$(wildcard $(TOOLCHAIN_DIR)/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_NATIVE_TOOLCHAIN),)
This page took 0.020613 seconds and 4 git commands to generate.