[systemd-devel] [systemd-commits] docs/gudev
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Wed Aug 8 09:56:05 PDT 2012
On 08/08/2012 06:31 PM, Kay Sievers wrote:
> 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.
I just made a simple test, and indeed flags added to gcc on the
command-line are not erased. I'll add 'override', but I want to check if
it works with the real flags. Hence a question: which gcc flags cannot
be used twice?
Zbyszek
> Just add this if you think it's better, more reliable; I never used override.
More information about the systemd-devel
mailing list