bin/144313: ld(1) can't find libs in /usr/local/lib but ldconfig(8) can

vwe at FreeBSD.org vwe at FreeBSD.org
Thu Aug 12 21:19:52 UTC 2010


Synopsis: ld(1) can't find libs in /usr/local/lib but ldconfig(8) can

State-Changed-From-To: open->suspended
State-Changed-By: vwe
State-Changed-When: Thu Aug 12 21:01:25 UTC 2010
State-Changed-Why: 
Oscar,
the answer to your problem is in the output you were quoting:
"SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");"
Just give ld(1) the additional search path using -L and you're done.
The optimal place to set -L is in your makefile. It often works that way.
AFAICT there's no ld.so.conf support for fbsd. 


Responsible-Changed-From-To: freebsd-bugs->vwe
Responsible-Changed-By: vwe
Responsible-Changed-When: Thu Aug 12 21:01:25 UTC 2010
Responsible-Changed-Why: 
track

http://www.freebsd.org/cgi/query-pr.cgi?pr=144313


More information about the freebsd-bugs mailing list