From owner-freebsd-questions Mon Nov 13 07:24:47 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id HAA02423 for questions-outgoing; Mon, 13 Nov 1995 07:24:47 -0800 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id HAA02410 for ; Mon, 13 Nov 1995 07:24:42 -0800 Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA19293; Mon, 13 Nov 1995 10:24:31 -0500 Date: Mon, 13 Nov 1995 10:24:31 -0500 From: "Garrett A. Wollman" Message-Id: <9511131524.AA19293@halloran-eldar.lcs.mit.edu> To: Archie Cobbs Cc: freebsd-questions@freebsd.org Subject: Re: ld default path In-Reply-To: <199511110123.RAA03141@bubba.tribe.com> References: <199511110007.RAA03383@rocky.sri.MT.net> <199511110123.RAA03141@bubba.tribe.com> Sender: owner-questions@freebsd.org Precedence: bulk < said: > Sorry, I should have been more specific... this applies only to static > libraries... > Suppose you have /usr/local/lib/libXXX.a and you complile a program > with "cc -o program program.c -lXXX" then it won't be found. Right. If you want to include something other than the default, use `-L' like it says in the man page. Not everybody uses /usr/local/lib. -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant