[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why CFLAGS works but not name_CFLAGS sometimes?
From: |
cs |
Subject: |
Re: Why CFLAGS works but not name_CFLAGS sometimes? |
Date: |
Tue, 13 May 2003 17:11:18 -0700 (MST) |
Sander
Thanks for the help. This will surprise you perhaps...
After a little work I think I found the source of the
problem. Just the slight different in Autotools between
Red Hat 7.3 and 8.0 I think is the cause of the problem!!!!
"name_CFLAGS = -Wall"
This is IGNORED in Red Hat 7.3 but NOT 8.0!!!
I don't see -Wall's when I do make on 7.3
but I do on 8.0!?!?!?
Chris
-------- Original Message --------
Subject: Re: Why CFLAGS works but not name_CFLAGS sometimes?
From: Sander Niemeijer <address@hidden>
Date: Thu, May 8, 2003 7:27 am
To: <address@hidden>
On dinsdag, mei 6, 2003, at 07:24 Europe/Amsterdam, <address@hidden>
wrote:
> Is there a reason sometimes name_CFLAGS
> does not work and you must just do CFLAGS because
> just CFLAGS by itself works???
This could be the case if you want to overrule an option in
name_CFLAGS that is also in CFLAGS (for instance change the
optimization setting). Because automake compiles with '$(CC) ...
$(name_CFLAGS) $(CFLAGS) ...' an option in name_CFLAGS will be
overruled by the option in CFLAGS. At least for gcc (but AFAIK this
is the same for any compiler/linker) the last option has the highest
precedence. The same holds for CPPFLAGS and LDFLAGS.
However, there is one exception, which is the '-I' and '-L' options
(in that case the first occurance has higher precedence).
Is this what you meant? Otherwise sent an example of what went wrong
exactly.
Regards,
Sander