From e93405a3d3ec3a1dc78df314e6439c9b74466d4f Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Tue, 24 Nov 2015 20:37:27 +0000 Subject: [PATCH] Improve makefile syntax, and add JIT on arm64 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 4efec53..37e2b7d 100755 --- a/debian/rules +++ b/debian/rules @@ -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 -- 2.30.2