Subject: Re: how to deal with libc vs. libresolve discrepancies?
To: NetBSD User-Level Technical Discussion List <>
From: Joerg Sonnenberger <>
List: tech-pkg
Date: 12/19/2006 14:16:23
On Mon, Dec 18, 2006 at 01:01:58PM -0500, Greg A. Woods wrote:
> So, here's what happens, this example from net/lft.  In the past I've
> just blasted in and patched the errant config script or makefile to get
> rid of the problem-causing unnecessary "-lresolv", and sometimes I think
> I've even submitted a patch and/or PR, thus the cross-post to tech-pkg.

You can use something like BUILDLINK_TRANSFORM+= l:resolv:
in /etc/mk.conf I think. This is not appropiate for general pkgsrc use
though, as on some platforms the libc resolver is not fully thread-safe
in contrast to e.g. BIND versions (libresolv).