[packages] binutils: fix linking to libiberty (#9048)
[openwrt/svn-archive/archive.git] / devel / binutils / Makefile
index b607e79..5925fdd 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)