debian/rules: rely on dpkg architecture.mk for DEB_HOST_* DEB_BUILD_*
authorRob Browning <rlb@defaultvalue.org>
Sat, 11 Jun 2022 18:01:12 +0000 (13:01 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 11 Jun 2022 22:13:55 +0000 (17:13 -0500)
debian/rules

index 53b02a0474ef6fa5a287cfb1d045747891a971c4..3ec1928e41fe1a2e31f0851ebb51da6460f26d1f 100755 (executable)
@@ -15,6 +15,7 @@
 # Debhelper support added via one of Joey Hess' example files.
 # See the debian/changelog for further historical information.
 
+include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/pkg-info.mk
 
 # Uncomment this to turn on verbose mode.
@@ -77,16 +78,6 @@ menu_ver := $(major_ver)
 
 ######################################################################
 
-# Should these be exported like this (as autotools-dev recommends for
-# the two vars below) or not?
-export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-export DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
-
-# As recommended by /usr/share/doc/autotools-dev/README.Debian.gz.
-# Handle cross-compiling and don't make ./configure guess.
-export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
 # FOR AUTOCONF 2.52 AND NEWER ONLY
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
   confflags += --build $(DEB_HOST_GNU_TYPE)