[104258] trunk/base/src/port1.0/portconfigure.tcl

Lawrence Velázquez larryv at macports.org
Sun May 5 07:56:10 PDT 2013


On May 5, 2013, at 8:11 AM, "Andrea D'Amore" <and.damore at macports.org> wrote:

> On Sun, May 5, 2013 at 11:53 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
>> Tons of projects misuse the *FLAGS variables and put them in the wrong places, so I'm sure there are projects that use LDFLAGS even when not linking. My understanding is that "-Wl," ensures that the flag will only get passed to the linker.
> 
> I know, lot of makefiles pass LDFLAGS to compile commands rather than
> to link ones so that justifies the use of "-Wl," since it's a compiler
> option.

LDFLAGS is intended to be passed to the compiler, not directly to the linker.

http://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html

> LDFLAGS
>     Extra flags to give to compilers when they are supposed to invoke the linker, ‘ld’.


vq


More information about the macports-dev mailing list