From owner-freebsd-hackers Tue Jul 11 12:43:25 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from icebox.venux.net (icebox.venux.net [216.120.166.10]) by hub.freebsd.org (Postfix) with ESMTP id 7E93137B8F1 for ; Tue, 11 Jul 2000 12:43:20 -0700 (PDT) (envelope-from matthew@venux.net) Received: from thunder.venux.net (net-216-93-125-061.hcv.com [216.93.125.61]) by icebox.venux.net (Postfix) with ESMTP id 4584626202; Tue, 11 Jul 2000 15:50:43 -0400 (EDT) Message-Id: <4.3.2.7.2.20000711152944.00cf6220@127.0.0.1> X-Sender: mhagerty/pop3.venux.net@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 11 Jul 2000 15:37:24 -0400 To: "Chris D. Faulhaber" From: Matthew Hagerty Subject: Re: ld static search path? Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: References: <4.3.2.7.2.20000711145318.00c19c40@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 03:24 PM 7/11/00 -0400, Chris D. Faulhaber wrote: >On Tue, 11 Jul 2000, Matthew Hagerty wrote: > > > Greetings, > > > > I posted this to questions, but have not received any reply. I was hoping > > someone here in hackers could help... Thanks. > > > > Original Post > > ------------- > > Could someone tell me how I can find out what the *static* search path for > > ld is? Also, how can I add my own directories to the static search path? > > > >If you are speaking of static libraries, I believe it defaults to >/usr/lib. When compiling use the -L flags to specify other dirs >(e.g. -L/usr/local/lib -l). > >----- >Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org Correct, the -L I am aware of. My problem is that I am trying to compile a program that uses a configure script to check certain things, among which are that ld can find all libraries specified with the -l flag. The problem is that that this particular configure script does not honor my -L flags that I try to pass it, so it fails. The whole thing works on Linux, which is where this particular program was developed (I think). I can get it to work by making symlinks from the libs in /usr/local/lib to /usr/lib, but this completely defeats the purpose of having a /usr/local/lib... I could hack the configure script, but aside from being a pain in the butt (it is a 44,000 line configure script!) I don't want to have to do that for every program that I try to install that expects ld to be able to find standard libraries. Any insight would be greatly appreciated. Thank you, Matthew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message