automake
[Top][All Lists]
Advanced

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

Re: CXXFLAGS and linking


From: Guido Draheim
Subject: Re: CXXFLAGS and linking
Date: Fri, 24 Jan 2003 21:01:54 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020826

Braden McDaniel schrieb:
Quoting Alexandre Duret-Lutz <address@hidden>:


"Braden" == Braden McDaniel <address@hidden> writes:

[...]

Braden> I've reviewed 7.2 in the GNU Coding Standards, and it's
Braden> not clear to me what you're referring to. Where exactly
Braden> should I be looking?

The following sentence in the `Variables for Specifying Commands'
section (sorry I don't have section number in the info version).

| `CFLAGS' should be used in every invocation of the C compiler, both
| those which do compilation and those which do linking.


Ah, found it. Thanks.

I guess, then, that this is a bug in GNU make.


Perhaps not. Know what, coding standards might not be correct
forever or be in sync with real world evolution. It might
stem from the fact to use the (g)cc for linking in the gnu
world - but that is not overly general, and the default
gmake rules might point to that, as it perhaps took these
rules from models like sun make. In fact, it might be that
one wants to use a _different_ tool for compiling than
linking, - to pick it from the same toolchain happens to be
the normal case but not the general - or am I wrong here?

Interesting to me: one might guess that libtool could get
away with using a different linker than the objects were
compiled with, interpreting arguments itself. And that
makes this "problem" to come up only in the presented
case, without a libtool wrapper at hand and neither using
gcc, right?

cheers, guido






reply via email to

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