Rely on pre-initialized dpkg-architecture variables.
authorAndreas Tille <tille@debian.org>
Wed, 14 Feb 2024 20:11:33 +0000 (21:11 +0100)
committerAndreas Tille <tille@debian.org>
Wed, 14 Feb 2024 20:11:33 +0000 (21:11 +0100)
Changes-By: lintian-brush
debian/rules

index 790061c94f5639bc8532d502bf3fdb987847e0bd..2e09442eca84e804924fa6e4ce0c49dbe9111c30 100755 (executable)
@@ -7,7 +7,7 @@ export DH_OPTIONS=-v
 
 CXXFLAGS:= $(filter-out -Werror=format-security, $(shell dpkg-buildflags --get CXXFLAGS))
 
-DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+include /usr/share/dpkg/architecture.mk
 
 ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
        export DEB_CXXFLAGS_MAINT_APPEND = -g0