From 24feb8828f4d7d6ad3c449ebba5ae631eabcc032 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 4 Jul 2024 11:38:18 +0100 Subject: [PATCH] Break out D_BUILDFLAGS This will let us set DEB_BUILD_MAINT_OPTIONS. Setting it in d/rules with `export` doesn't work, empirically. Signed-off-by: Ian Jackson --- debian/rules | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 403c728..d625bee 100755 --- a/debian/rules +++ b/debian/rules @@ -13,10 +13,12 @@ cwd= $(shell pwd) d= $(cwd)/debian t= $d/tmp +D_BUILDFLAGS=dpkg-buildflags + makebuildargs := OPTIMISE= DEBUG= \ - CMDLINE_CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \ - CMDLINE_CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" \ - CMDLINE_LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" + CMDLINE_CFLAGS="$(shell $(D_BUILDFLAGS) --get CFLAGS)" \ + CMDLINE_CPPFLAGS="$(shell $(D_BUILDFLAGS) --get CPPFLAGS) \ + CMDLINE_LDFLAGS="$(shell $(D_BUILDFLAGS) --get LDFLAGS)" build: $(checkdir) -- 2.30.2