Trying to use libidn in a port but get this error ld: library not found for -lidn
ryandesign at macports.org
Sun Aug 16 14:05:12 PDT 2015
On Aug 16, 2015, at 14:46, Brandon Allbery wrote:
> On Sun, Aug 16, 2015 at 3:43 PM, Ben Greenfield wrote:
>> I think I fixed the problem by adding -L/opt/local/lib to the LDFLAGS in macosx specific section.
>> Does that sound like the expected fix?
> Depends. If it's based on autoconf then you sometimes have to read through all the aclocal stuff to find the right place to bodge it in; for a simple Makefile, just adding to LDFLAGS is usually sufficient.
I would answer this exactly the other way round: autoconf based build systems are largely well behaved and will respond correctly to LDFLAGS being set, though it's certainly possible to use autoconf incorrectly such that that doesn't work. Simple handmade Makefiles are, on the other hand, much more likely to have been written without regard for this.
> (If it's cmake, $DEITY have mercy on you.)
Agreed. Same for scons or Xcode other build systems. All build systems are horrible, basically.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users