Date: Thu, 12 Aug 2010 21:19:51 GMT From: vwe@FreeBSD.org To: oscar.norlander@gmail.com, vwe@FreeBSD.org, freebsd-bugs@FreeBSD.org, vwe@FreeBSD.org Subject: Re: bin/144313: ld(1) can't find libs in /usr/local/lib but ldconfig(8) can Message-ID: <201008122119.o7CLJpuU047782@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008122119.o7CLJpuU047782>