*BSD News Article 85996


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!usenet
From: ghudson@mit.edu (Greg Hudson)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: LD_LIBRARY_PATH and XFree86 3.2 on NetBSD/i386
Date: 01 Jan 1997 15:50:38 -0500
Organization: Massachusetts Institute of Technology
Lines: 14
Sender: ghudson@the-light-fantastic.MIT.EDU
Message-ID: <x7div5hrug1.fsf@the-light-fantastic.MIT.EDU>
References: <5a9ht3$sn6@wsrcc.com>
NNTP-Posting-Host: the-light-fantastic.mit.edu
In-reply-to: wolfgang@wsrcc.com's message of 30 Dec 1996 15:06:11 -0800
X-Newsreader: Gnus v5.1
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:5046

I don't think Kenneth Stailey answered the question you asked, so:

> In the SunOS way of handling this, one could link an absolute path
> into the executable and have the run-time linker look for the
> libraries with those absolute names.

You can link with the -R option (e.g. "-R/usr/X11R6/lib"), which puts
a run-time path in the binary.  It gives the absolute name of a
directory to look for libraries in, not the absolute name of the
libraries themselves.

It doesn't appear that the binaries release of XFree86 puts any
absolute paths in their binaries; they just assume you will use
ldconfig to put /usr/X11R6/lib in your hints file.