diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-07-16 14:01:27 -0400 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-07-18 14:34:50 +0900 |
commit | 98d7c7ea3f37cf359f7e90192dedee7b1a791172 (patch) | |
tree | b7350e2994078c33951169356d6822ea07aa3327 | |
parent | 259a23e0089aa72d31a3102c1470927e16ef630d (diff) | |
download | libassuan-98d7c7ea3f37cf359f7e90192dedee7b1a791172.tar.gz |
build: Use {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD for helper programs.
* 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-id: 932213
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
-rw-r--r-- | src/Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 089bc97..6b9a46d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -149,7 +149,8 @@ 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 \ |