Improve makefile syntax, and add JIT on arm64
authorMatthew Vernon <matthew@debian.org>
Tue, 24 Nov 2015 20:37:27 +0000 (20:37 +0000)
committerMatthew Vernon <matthew@debian.org>
Tue, 24 Nov 2015 20:37:27 +0000 (20:37 +0000)
The previous findstring rune had failure modes with arches that were
substrings of each other; using filter avoids that and removes the
necessity of a $strip() call. Thanks to Colin Watson for the
suggestion.

debian/rules

index 4efec539d52bbf976a8606feee6bafc30f0aceba..37e2b7d72c5a9b3d4b9c7c1c5ed42543b3a48a00 100755 (executable)
@@ -13,7 +13,7 @@ export DEB_CFLAGS_MAINT_APPEND = -Dregcomp=PCRE2regcomp -Dregexec=PCRE2regexec -
 
 deb_maint_conf_args = --enable-pcre2-16 --enable-pcre2-32
 #enable JIT only on architectures that support it (see pcre2jit.3)
-ifneq ($(strip $(findstring $(DEB_HOST_ARCH), i386 amd64 armel armhf mips mipsel mips64el powerpc sparc)),)
+ifneq ($(filter i386 amd64 armel armhf mips mipsel mips64el powerpc sparc arm64, $(DEB_HOST_ARCH)),)
 deb_maint_conf_args +=--enable-jit
 else
 deb_maint_conf_args +=--disable-jit