From owner-freebsd-hackers Wed Jul 21 9: 6:51 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 10C2614DB1 for ; Wed, 21 Jul 1999 09:06:39 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id JAA04465; Wed, 21 Jul 1999 09:04:15 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id JAA71266; Wed, 21 Jul 1999 09:04:14 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Wed, 21 Jul 1999 09:04:14 -0700 (PDT) Message-Id: <199907211604.JAA71266@vashon.polstra.com> To: crossd@cs.rpi.edu Subject: Re: linking question... In-Reply-To: <199907210557.BAA43815@cs.rpi.edu> Organization: Polstra & Co., Seattle, WA Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199907210557.BAA43815@cs.rpi.edu>, David E. Cross wrote: > > The problem indeed was conflicting libraries... (in /usr/X11R6/lib).. however > I did place on the line *immediately* before the -lwcs a -L/usr/local/lib, > however it appeared to take the /usr/X11R6/lib (which was in a previous -L > statement) version instead. Is this correct? Yes, it's correct. The -L options can appear anywhere relative to the -l options -- even after them -- and it doesn't make any difference. The relative ordering among the -L options with respect to *each other* is all ld cares about. That's been the traditional behavior on every Unix system I've ever used that supported -L at all. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "No matter how cynical I get, I just can't keep up." -- Nora Ephron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message