On May 5, 2013, at 8:11 AM, "Andrea D'Amore" <[email protected]> wrote:

> On Sun, May 5, 2013 at 11:53 AM, Ryan Schmidt <[email protected]> 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
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to