Bug#857172: Please enable SSE2 on amd64 and disable altivec on PPC ports
Source: babl
Version: 0.1.18-1
Severity: normal
Hi,
According to [0], optimisation upto SSE2 can be enabled on amd64.
Also, I'm not sure that altivec is officially supported on any of the
ppc ports, so I'm disabling it completely, I'm putting debian-powerpc ML
in copy.
See attached patch.
Regards,
Laurent Bigonvilleo
[0] https://www.debian.org/ports/amd64/index.en.html
-- System Information:
Debian Release: 9.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru babl-0.1.18/debian/rules babl-0.1.18/debian/rules
--- babl-0.1.18/debian/rules 2016-03-16 18:06:40.000000000 +0100
+++ babl-0.1.18/debian/rules 2017-03-08 15:02:28.000000000 +0100
@@ -7,10 +7,19 @@
export LDFLAGS += -Wl,--as-needed
+# disable sse2 except on amd64
+ifneq ($(DEB_HOST_ARCH_CPU),amd64)
+sse_flags := --disable-mmx --disable-sse --disable-sse2
+else
+sse_flags := --enable-mmx --enable-sse --enable-sse2
+endif
+
DEB_CONFIGURE_EXTRA_FLAGS += \
--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
- --disable-mmx \
- --disable-sse
+ $(sse_flags) \
+ --disable-sse4_1 \
+ --disable-f16c \
+ --disable-altivec
DEB_DH_MAKESHLIBS_ARGS_libbabl-0.1-0 = "--exclude=/usr/lib/$(DEB_HOST_MULTIARCH)/babl-0.1"
DEB_DH_INSTALLDOCS_ARGS_libbabl-0.1-doc = "--exclude=Makefile"
Reply to: