[SCM] midisnoop/master: Detect build's type at build time.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Feb 13 03:14:54 UTC 2013


The following commit has been merged in the master branch:
commit 334ee0b220946abab753e16a65fed5766917014d
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Feb 13 03:14:07 2013 +0000

    Detect build's type at build time.

diff --git a/debian/rules b/debian/rules
index ba36f19..7c31b60 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,15 +2,17 @@
 
 #LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 #export LDFLAGS+=-Wl,--as-needed
+
 export REPACK_SH=$(CURDIR)/debian/repack.sh
 
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 export DEB_BUILD_HARDENING=1
 
 %:
 	dh $@
 
 override_dh_auto_configure:
-	./configure --build=x86_64-linux-gnu --prefix=/usr
+	./configure --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
 
 override_dh_auto_install:
 	dh_auto_install

-- 
midisnoop packaging



More information about the pkg-multimedia-commits mailing list