Use configure.ldflags-delete instead of configure.ldflags?

Landon J Fuller landonf at
Tue Mar 15 09:16:38 PDT 2011

On Mar 14, 2011, at 9:13 PM, Ryan Schmidt wrote:

> Sounds like a good suggestion. Right now, the two are equivalent, but it might be better for ports to specify exactly what they mean -- i.e. if deleting -L${prefix}/lib is what's desired, the port should say that, rather than assume that's all that's in the ldflags and just clear them completely.

Explicitly deleting just -L${prefix}/lib is fragile, however, and 'ldflags' should (imho) be safe for a port to simply reset. This seems demonstrative of the problems that can emerge with base implicitly setting environmental variables and other build-time arguments; it's much harder to control them directly from a port when you need something different.


More information about the macports-dev mailing list