grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HOST_* flags are not used by gnulib


From: Andrey Borzenkov
Subject: Re: HOST_* flags are not used by gnulib
Date: Mon, 28 Jul 2014 06:52:59 +0400

В Wed, 23 Jul 2014 09:41:38 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden> пишет:

> On 03.04.2014 20:01, Andrey Borzenkov wrote:
> > I noticed that host flags are not propagated to gnulib. This does not
> > feel right; in particular I noticed it because attempt to enable
> > debugging for host tools (HOST_CFLAGS=-g) did not work for gnulib files.
> > 
> It should be just CFLAGS (refer to INSTALL)

The problem is that CFLAGS leak into target. Default compilation
command used by automake is

COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

And any initial CFLAGS setting is passed through to all generated
Makefiles. 

So instructions in INSTALL are, unfortunately, wrong - CFLAGS cannot be
safely used to initialize host environment.

> > Is it intentional?
> > 
> > _______________________________________________
> > Grub-devel mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/grub-devel
> > 
> 
> 

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]