[SCM] jack-audio-connection-kit/master: d/rules: check for DEB_HOST_ARCH_CPU instead of DEB_BUILD_ARCH

mattia at users.alioth.debian.org mattia at users.alioth.debian.org
Wed Nov 8 16:46:00 UTC 2017


The following commit has been merged in the master branch:
commit 8fbf43e1b80021d2875d05282146f93d93149ecf
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Nov 8 17:14:15 2017 +0100

    d/rules: check for DEB_HOST_ARCH_CPU instead of DEB_BUILD_ARCH
    
    checking DEB_BUILD_* is basically always wrong; check _CPU to cater for
    hurd-* and kfreebsd-* archs.
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>

diff --git a/debian/rules b/debian/rules
index 38b8211..ad5abb7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ DEB_CONFIGURE_EXTRA_FLAGS := \
 
 ifneq (,$(filter doopt,$(DEB_BUILD_OPTIONS)))
 # do optimization for the different architectures
-  ifneq (,$(findstring i386,$(DEB_BUILD_ARCH)))
+  ifneq (,$(findstring i386,$(DEB_HOST_ARCH_CPU)))
     DEB_CONFIGURE_EXTRA_FLAGS += --enable-optimize --enable-sse --enable-mmx -enable-dynsimd
     OPTI_FLAGS := -D_REENTRANT -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -funroll-loops
     DEB_CXXFLAGS_MAINT_APPEND += $(OPTI_FLAGS)
@@ -24,7 +24,7 @@ ifneq (,$(filter doopt,$(DEB_BUILD_OPTIONS)))
   endif
 endif
 
-ifneq (,$(filter amd64,$(DEB_BUILD_ARCH)))
+ifneq (,$(filter amd64,$(DEB_HOST_ARCH_CPU)))
 DEB_CONFIGURE_EXTRA_FLAGS += --enable-dynsimd=yes
 DEB_CFLAGS_MAINT_APPEND += -m3dnow -msse
 endif

-- 
Debian packaging for jack-audio-connection-kit



More information about the pkg-multimedia-commits mailing list