[systemd-devel] [systemd-commits] docs/gudev

Kay Sievers kay at vrfy.org
Wed Aug 8 09:31:06 PDT 2012


On Wed, Aug 8, 2012 at 6:26 PM, Zbigniew Jędrzejewski-Szmek
<zbyszek at in.waw.pl> wrote:
>> +# Hack, hack. You silly gtk-doc, you must not add  CFLAGS multiple
>> +# times when calling gcc; it surely can not work with options that must
>> +# be listed only once.
>> +# Kill CFLAGS here because gtk-doc thinks adding CFLAGS to CC _and_ also
>> +# adding CFLAGS itself again would work.
>> +CFLAGS=
>> +LDFLAGS=
> Hi,
> are you sure that this works as expected? Quoting info make:
> """
> An argument that contains `=' specifies the value of a variable: `V=X'
> sets the value of the variable V to X.  If you specify a value in this
> way, all ordinary assignments of the same variable in the makefile are
> ignored; we say they have been "overridden" by the command line
> argument.
> """
> So I expect e.g. 'make CFLAGS=...' to cause your override to be ignored.
> I think you have to do
>   override CFLAGS=
> to have certain effect.

Could be that it does not work on the cmdline, I only tried
./configure, which seems to work fine with the assignment and which
fails otherwise.

Just add this if you think it's better, more reliable; I never used override.

Kay


More information about the systemd-devel mailing list