summaryrefslogtreecommitdiffstats
path: root/src/file.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-02-03 18:03:38 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2015-02-03 18:03:38 (GMT)
commitd19c724cbc2b005d0940facb3a10f2a58c674678 (patch)
tree4ec110cca26bf5205719278bc6c0ddc96e8e4a19 /src/file.mk
parent2c95e9596e5f12ba9ce8e3ba56ccc548d19a63d3 (diff)
downloadmxe-d19c724cbc2b005d0940facb3a10f2a58c674678.zip
mxe-d19c724cbc2b005d0940facb3a10f2a58c674678.tar.gz
mxe-d19c724cbc2b005d0940facb3a10f2a58c674678.tar.bz2
file: autoreconf before copying the directory to .native
Might fix compilation with automake 1.15.
Diffstat (limited to 'src/file.mk')
-rw-r--r--src/file.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file.mk b/src/file.mk
index d60aad9..7be2d8d 100644
--- a/src/file.mk
+++ b/src/file.mk
@@ -19,12 +19,13 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
+ cd '$(1)' && autoreconf -fi
+
# "file" needs a runnable version of the "file" utility
# itself. This must match the source code regarding its
# version. Therefore we build a native one ourselves first.
cp -Rp '$(1)' '$(1).native'
- cd '$(1).native' && autoreconf -fi
cd '$(1).native' && ./configure \
--disable-shared
$(MAKE) -C '$(1).native/src' -j '$(JOBS)' file