From: Christos Zoulas Date: Tue, 2 Feb 2016 21:30:47 +0000 (+0000) Subject: PR/485: Use ${FILE_COMPILE} when cross-compiling to test for file version. X-Git-Tag: FILE5_26~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eeebf1aca1e7cb2b6d00bc690e4e40caedd03c74;p=file PR/485: Use ${FILE_COMPILE} when cross-compiling to test for file version. This might break cross-compiling to a different architecture. --- diff --git a/magic/Makefile.am b/magic/Makefile.am index d94e99d6..9c1538f1 100644 --- a/magic/Makefile.am +++ b/magic/Makefile.am @@ -1,5 +1,5 @@ # -# $File: Makefile.am,v 1.107 2015/11/23 22:04:36 christos Exp $ +# $File: Makefile.am,v 1.108 2016/01/19 15:08:14 christos Exp $ # MAGIC_FRAGMENT_BASE = Magdir MAGIC_DIR = $(top_srcdir)/magic @@ -296,7 +296,7 @@ ${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP) @(if expr "${FILE_COMPILE}" : '.*/.*' > /dev/null; then \ echo "Using ${FILE_COMPILE} to generate ${MAGIC}" > /dev/null; \ else \ - v=$$(file --version | sed -e s/file-// -e q); \ + v=$$(${FILE_COMPILE} --version | sed -e s/file-// -e q); \ if [ "$$v" != "${PACKAGE_VERSION}" ]; then \ echo "Cannot use the installed version of file ($$v) to"; \ echo "cross-compile file ${PACKAGE_VERSION}"; \