The build of 'file', needs to run 'file' natively, so provide a valid link
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Fri, 4 Jul 2008 20:35:41 +0000 (20:35 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Fri, 4 Jul 2008 20:35:41 +0000 (20:35 -0000)
package/file/file.mk

index 9cacf536011c4118a6e418d5b108ed8ffc2acf75..d3843a35e173e85b85529ced35afb2cb6b1c6f4d 100644 (file)
@@ -85,6 +85,7 @@ $(FILE_DIR2)/.configured: $(FILE_SOURCE_DIR)/.unpacked
        touch $@
 
 $(FILE_DIR2)/$(FILE_BINARY): $(FILE_DIR2)/.configured $(TOOL_BUILD_DIR)/bin/file
+       ln -sf $(FILE_DIR1)/install/bin/file $(FILE_DIR2)/magic/file
        $(MAKE) $(TARGET_CONFIGURE_OPTS) LDFLAGS="-static" -C $(FILE_DIR2)
 
 $(TARGET_DIR)/$(FILE_TARGET_BINARY): $(FILE_DIR2)/$(FILE_BINARY)