file: autoreconf before copying the directory to .native

Might fix compilation with automake 1.15.
This commit is contained in:
Timothy Gu 2015-02-03 10:03:38 -08:00
parent 2c95e9596e
commit d19c724cbc
1 changed files with 2 additions and 1 deletions

View File

@ -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