From owner-freebsd-questions Sun Feb 23 17:17:29 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BEBB37B401 for ; Sun, 23 Feb 2003 17:17:27 -0800 (PST) Received: from mail015.syd.optusnet.com.au (mail015.syd.optusnet.com.au [210.49.20.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04F8843F93 for ; Sun, 23 Feb 2003 17:17:26 -0800 (PST) (envelope-from izzo@optusnet.com.au) Received: from kalgan.local (c18428.eburwd1.vic.optusnet.com.au [210.49.180.23]) by mail015.syd.optusnet.com.au (8.11.6/8.11.6) with ESMTP id h1O1HOY23761 for ; Mon, 24 Feb 2003 12:17:24 +1100 Received: from kalgan.local (izzo@localhost [127.0.0.1]) by kalgan.local (8.12.6/8.12.6) with ESMTP id h1O1HPNP000400 for ; Mon, 24 Feb 2003 12:17:25 +1100 (EST) (envelope-from izzo@kalgan.local) Received: (from izzo@localhost) by kalgan.local (8.12.6/8.12.6/Submit) id h1O1HOAn000399 for freebsd-questions@freebsd.org; Mon, 24 Feb 2003 12:17:24 +1100 (EST) Date: Mon, 24 Feb 2003 12:17:24 +1100 From: Sam Izzo To: freebsd-questions@freebsd.org Subject: Re: linker paths & /usr/local/lib Message-ID: <20030224011724.GA296@kalgan.vic.optushome.com.au> References: <20030223152808.GA1391@kalgan.vic.optushome.com.au> <20030223165133.79e9aa2b.flynn@energyhq.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030223165133.79e9aa2b.flynn@energyhq.homeip.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi On Sun, Feb 23, 2003 at 04:51:33PM +0100, Miguel Mendez wrote: > > and the command-line: > > > > gcc test.c -o test -lHermes > > > > You probably want something like this: > > cc -o test test.c -L/usr/local/lib -lHermes > Yeah that's all well and good for me compiling my own programs, but the OpenPTC `configure' checks for Hermes by writing the test program that I posted and linking with the above line :-) It doesn't put -L/usr/local/lib in. I suppose I can just hack the `configure' script but surely there's a better solution? > IIRC, ld.so.conf only affects the runtime dynamic linker, in a similar > way LD_LIBRARY_PATH does. Ahh, darn, that's not what the ld man page says :) But it didn't work when I put the paths in ld.so.conf so I guess it's wrong.. Thanks for your suggestions. sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message