Trying to use libidn in a port but get this error ld: library not found for -lidn

Brandon Allbery allbery.b at
Sun Aug 16 12:46:51 PDT 2015

On Sun, Aug 16, 2015 at 3:43 PM, Ben Greenfield <ben at> 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. (If it's cmake,
$DEITY have mercy on you.)

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list