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

Ryan Schmidt ryandesign at macports.org
Sun May 5 02:53:44 PDT 2013


On May 5, 2013, at 04:36, Andrea D'Amore wrote:
> On Fri, Mar 22, 2013 at 10:46 AM, wrote:
>> Modified: trunk/base/src/port1.0/portconfigure.tcl (104257 => 104258)
>> --- trunk/base/src/port1.0/portconfigure.tcl 2013-03-22 09:43:44 UTC (rev 104257)
>> +++ trunk/base/src/port1.0/portconfigure.tcl 2013-03-22 09:46:27 UTC (rev 104258)
>> @@ -134,7 +134,7 @@
>> default configure.cppflags  {-I${prefix}/include}
>> default configure.cxxflags  {${configure.optflags}}
>> default configure.objcflags {${configure.optflags}}
>> -default configure.ldflags   {-L${prefix}/lib}
>> +default configure.ldflags   {"-L${prefix}/lib -Wl,-headerpad_max_install_names"}
> 
> "-Wl," isn't a documented ld option even if it seems to actually work
> (I've been passing options to ld 134.9 on purpose to test this),
> should we make that line
>    default configure.ldflags   {"-L${prefix}/lib -headerpad_max_install_names"}
> instead?

I haven't noticed any ill effects from using -Wl,-headerpad_max_install_names; have you?

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.




More information about the macports-dev mailing list