This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=54a1a23d3960b496e6d12dbb973b895f5c2e4d3b

commit 54a1a23d3960b496e6d12dbb973b895f5c2e4d3b (HEAD -> main)
Author: Nicolas Boulenguez <nico...@debian.org>
AuthorDate: Sat Mar 9 17:21:53 2024 +0100

    scripts/mk: Generate the _FOR_BUILD variant of each variable automatically
    
    Use a loop instead of duplicating the same variable with and without
    _FOR_BUILD suffix.
    
    Signed-off-by: Guillem Jover <guil...@debian.org>
---
 scripts/mk/buildflags.mk | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/scripts/mk/buildflags.mk b/scripts/mk/buildflags.mk
index 000aee541..11597002d 100644
--- a/scripts/mk/buildflags.mk
+++ b/scripts/mk/buildflags.mk
@@ -37,28 +37,18 @@ dpkg_buildflags_mk_included = yes
 
 dpkg_lazy_eval ?= $$(or $$(value DPKG_CACHE_$(1)),$$(eval DPKG_CACHE_$(1) := 
$$(shell $(2)))$$(value DPKG_CACHE_$(1)))
 
-DPKG_BUILDFLAGS_LIST = \
+DPKG_BUILDFLAGS_LIST := $(foreach var,\
   ASFLAGS \
-  ASFLAGS_FOR_BUILD \
   CFLAGS \
-  CFLAGS_FOR_BUILD \
   CPPFLAGS \
-  CPPFLAGS_FOR_BUILD \
   CXXFLAGS \
-  CXXFLAGS_FOR_BUILD \
   OBJCFLAGS \
-  OBJCFLAGS_FOR_BUILD \
   OBJCXXFLAGS \
-  OBJCXXFLAGS_FOR_BUILD \
   DFLAGS \
-  DFLAGS_FOR_BUILD \
   FFLAGS \
-  FFLAGS_FOR_BUILD \
   FCFLAGS \
-  FCFLAGS_FOR_BUILD \
   LDFLAGS \
-  LDFLAGS_FOR_BUILD \
-  # EOL
+  ,$(var) $(var)_FOR_BUILD)
 
 define dpkg_buildflags_export_envvar
   ifdef $(1)

-- 
Dpkg.Org's dpkg

Reply via email to