On Mon, 6 Nov 2017 11:51:34 -0800 Max Filippov <jcmvb...@gmail.com> wrote:
> On Mon, Nov 6, 2017 at 10:38 AM, Matias Fonzo <s...@dragora.org> > wrote: > > On Mon, 6 Nov 2017 10:30:14 -0800 > > Max Filippov <jcmvb...@gmail.com> wrote: > [..] > >> > >> If CFLAGS/CXXFLAGS is the right place for the option, how can the > >> build tell whether it's intended for the build or for the host? > > > > GCC has $CFLAGS_FOR_BUILD and $CFLAGS_FOR_TARGET. > > Right, but as far as I can see CFLAGS_FOR_TARGET are not applied > when a binary for the host is built. And CFLAGS_FOR_BUILD are applied > when a binary for the build system is built. I don't see what I'd call > CFLAGS_FOR_HOST. > I am trying to find more information about HOST_CFLAGS ...