From 2eb9ee3e4fe2e00ce70af486818dfe9db306b87e Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Fri, 13 Apr 2007 02:43:28 +0000 Subject: [PATCH] Need the target LDFLAGS for this to link using external toolchain. --- package/file/file.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/file/file.mk b/package/file/file.mk index 4f589d90d0..48f43b5adf 100644 --- a/package/file/file.mk +++ b/package/file/file.mk @@ -86,10 +86,10 @@ $(FILE_DIR2)/.configured: $(FILE_SOURCE_DIR)/.unpacked touch $(FILE_DIR2)/.configured $(FILE_DIR2)/$(FILE_BINARY): $(FILE_DIR2)/.configured $(TOOL_BUILD_DIR)/bin/file - $(MAKE) $(TARGET_CONFIGURE_OPTS) LDFLAGS="-static" -C $(FILE_DIR2) + $(MAKE) $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(TARGET_LDFLAGS) -static" -C $(FILE_DIR2) $(TARGET_DIR)/$(FILE_TARGET_BINARY): $(FILE_DIR2)/$(FILE_BINARY) - $(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) -C $(FILE_DIR2) install + $(MAKE) $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(TARGET_LDFLAGS)" DESTDIR=$(TARGET_DIR) -C $(FILE_DIR2) install -($(STRIP) $(TARGET_DIR)/usr/lib/libmagic.so.*.* > /dev/null 2>&1) rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \ $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc -- 2.30.2