pass through {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD when creating helper programs

Authored by dkg on Jul 16 2019, 8:01 PM.

Description

pass through {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD when creating 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: 932213

  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details