summaryrefslogtreecommitdiff
path: root/package/file/patches/patch-magic_Makefile_in
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-31 19:50:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-31 19:50:02 +0100
commit67ceb4475d54d648708831ec1331877a7b7d036f (patch)
treed8c185c7fa72f4f658ad8d45aa6e5e903851f3d5 /package/file/patches/patch-magic_Makefile_in
parent53b2ff052e3a164154d4ee17f189b213e4600ecb (diff)
fix cross-compile.
compile host file statically, so that it uses the correct libmagic while generating the magic file.
Diffstat (limited to 'package/file/patches/patch-magic_Makefile_in')
-rw-r--r--package/file/patches/patch-magic_Makefile_in11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/file/patches/patch-magic_Makefile_in b/package/file/patches/patch-magic_Makefile_in
new file mode 100644
index 000000000..82f15d16c
--- /dev/null
+++ b/package/file/patches/patch-magic_Makefile_in
@@ -0,0 +1,11 @@
+--- file-5.04.orig/magic/Makefile.in 2010-01-22 22:44:34.000000000 +0100
++++ file-5.04/magic/Makefile.in 2010-01-31 19:18:37.000000000 +0100
+@@ -394,7 +394,7 @@ CLEANFILES = ${MAGIC} $(MAGIC_FRAGMENT_D
+
+ # FIXME: Build file natively as well so that it can be used to compile
+ # the target's magic file
+-@IS_CROSS_COMPILE_TRUE@FILE_COMPILE = file
++@IS_CROSS_COMPILE_TRUE@FILE_COMPILE = ./file
+ @IS_CROSS_COMPILE_FALSE@FILE_COMPILE_DEP = $(FILE_COMPILE)
+ @IS_CROSS_COMPILE_TRUE@FILE_COMPILE_DEP =
+ all: all-am