From: Matthew Vernon Date: Tue, 24 Nov 2015 20:37:27 +0000 (+0000) Subject: Improve makefile syntax, and add JIT on arm64 X-Git-Tag: archive/raspbian/10.45-1+rpi1~1^2~106 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e93405a3d3ec3a1dc78df314e6439c9b74466d4f;p=pcre2.git 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. --- 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