binutils: fix linking to libiberty (#9048)
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 21 Mar 2011 06:42:07 +0000 (06:42 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 21 Mar 2011 06:42:07 +0000 (06:42 +0000)
SVN-Revision: 26254

devel/binutils/Makefile

index b607e79389aa71004a2355e5485489abf439697c..5925fdd5208e25cf3cc56eebce452e93282e6640 100644 (file)
@@ -57,6 +57,7 @@ CONFIGURE_ARGS = \
                $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS))
 
 TARGET_CFLAGS += $(FPIC)
+TARGET_LDFLAGS := -L$(PKG_BUILD_DIR)/libiberty $(TARGET_LDFLAGS)
 
 define Build/Configure
        $(call Build/Configure/Default)