summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/ffts/debian/rules10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/ffts/debian/rules b/lib/ffts/debian/rules
index 7ed0ac0..169d1c4 100755
--- a/lib/ffts/debian/rules
+++ b/lib/ffts/debian/rules
@@ -9,7 +9,15 @@ DEB_CONFIGURE_MANDIR := /usr/share/man
DEB_CONFIGURE_PREFIX := /usr/
DEB_CONFIGURE_INFODIR := /usr/share/info
-cdbs_configure_flags := --enable-single --enable-shared --disable-rpath
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq (,$(findstring x86_64-,$(DEB_BUILD_GNU_TYPE)))
+ cdbs_configure_flags := --enable-single --enable-sse --enable-shared --disable-rpath
+else ifneq (,$(findstring arm-,$(DEB_BUILD_GNU_TYPE)))
+ cdbs_configure_flags := --enable-single --enable-neon --enable-shared --disable-rpath
+else
+ cdbs_configure_flags := --enable-single --enable-shared --disable-rpath
+endif
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)