summaryrefslogtreecommitdiff
path: root/scripts/mk
diff options
context:
space:
mode:
authorJack Bates <wdz7eo@nottheoilrig.com>2018-01-30 20:46:27 +0000
committerGuillem Jover <guillem@debian.org>2018-02-19 23:19:44 +0100
commitf6e152b63f9eb183313807898be0569f5321bdf6 (patch)
tree548204db2f2ef3a8adc37b2ffa2a13c88fa26649 /scripts/mk
parente226e6cf5507eebd4888d3d11e1b65752af6752f (diff)
downloaddpkg-f6e152b63f9eb183313807898be0569f5321bdf6.tar.gz
scripts/mk: Export architecture variables by default
The dpkg-architecture(1) man page states that these variables are exported, and that's what dpkg-buildpackage does itself when setting up the build environment. Doing this is always safe. Closes: #888964 Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts/mk')
-rw-r--r--scripts/mk/architecture.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mk/architecture.mk b/scripts/mk/architecture.mk
index 8520c5b2a..0af96019d 100644
--- a/scripts/mk/architecture.mk
+++ b/scripts/mk/architecture.mk
@@ -4,7 +4,7 @@
dpkg_lazy_eval ?= $$(or $$(value DPKG_CACHE_$(1)),$$(eval DPKG_CACHE_$(1) := $$(shell $(2)))$$(value DPKG_CACHE_$(1)))
-dpkg_architecture_setvar = $(1) ?= $(call dpkg_lazy_eval,$(1),dpkg-architecture -q$(1))
+dpkg_architecture_setvar = export $(1) ?= $(call dpkg_lazy_eval,$(1),dpkg-architecture -q$(1))
$(foreach machine,BUILD HOST TARGET,\
$(foreach var,ARCH ARCH_ABI ARCH_LIBC ARCH_OS ARCH_CPU ARCH_BITS ARCH_ENDIAN GNU_CPU GNU_SYSTEM GNU_TYPE MULTIARCH,\