Greg Troxel wrote:
I think you've figured it out, but truly fixing this seems very hard. The basic problem seems to be that buildlink can either -L to a native directory, or a pkgsrc directory, and depending on PREFER_* each package should come from the other. So it's almost like libraries need to be added with (-L /usr/foo/lib -lbar)
In the ld(1) manpage, there is written: > All -L options apply to all -l options, regardless of the > order in which the options appear. Roland