aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2019-07-16 18:01:27 +0000
committerDaniel Kahn Gillmor <[email protected]>2019-07-17 17:10:50 +0000
commit45f01593d4ce794ae3562359aee2ff80c97e368e (patch)
tree66ba81b97def22088bf10e00bd5fc7e6d026a5bb
parentPost release updates (diff)
downloadlibassuan-dkg-fix-T4641.tar.gz
libassuan-dkg-fix-T4641.zip
pass through {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD when creating helper programsdkg-fix-T4641
* src/Makefile.am: pass distinct build flags to CC_FOR_BUILD. -- We don't want to use the standard CFLAGS, CPPFLAGS, and LDFLAGS for build helper tools because when cross-compiling they might include choices that only make sense for the platform we are aiming to build for. That said, the environment might offer standard build flags for non-cross-built helper tools too. So we include those flags in the right place here. Debian-Bug: 932213 Signed-off-by: Daniel Kahn Gillmor <[email protected]>
-rw-r--r--src/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 089bc97..9bd65e9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -149,7 +149,7 @@ install-exec-hook:
endif
mkheader: mkheader.c Makefile
- $(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkheader.c
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkheader.c
assuan.h: assuan.h.in mkheader $(parts_of_assuan_h)
./mkheader $(host_os) $(srcdir)/assuan.h.in \