From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 12 21:19:52 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05DA71065672; Thu, 12 Aug 2010 21:19:52 +0000 (UTC) (envelope-from vwe@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D05678FC18; Thu, 12 Aug 2010 21:19:51 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7CLJpVe047786; Thu, 12 Aug 2010 21:19:51 GMT (envelope-from vwe@freefall.freebsd.org) Received: (from vwe@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7CLJpuU047782; Thu, 12 Aug 2010 21:19:51 GMT (envelope-from vwe) Date: Thu, 12 Aug 2010 21:19:51 GMT Message-Id: <201008122119.o7CLJpuU047782@freefall.freebsd.org> To: oscar.norlander@gmail.com, vwe@FreeBSD.org, freebsd-bugs@FreeBSD.org, vwe@FreeBSD.org From: vwe@FreeBSD.org Cc: Subject: Re: bin/144313: ld(1) can't find libs in /usr/local/lib but ldconfig(8) can X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2010 21:19:52 -0000 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