Subject: Re: X library path, etc.
To: Peter Seebach <email@example.com>
From: Jared D. McNeill <firstname.lastname@example.org>
Date: 01/14/2002 20:26:18
On Mon, 14 Jan 2002, Peter Seebach wrote:
> In message <Pine.NEB.email@example.com>, "Jare
> d D. McNeill" writes:
> >You could probably write yourself a small wrapper script for gcc to do
> >this for you; I, for one, would prefer to have them separate.
> Hmm. So, if you're spending a lot of time testing little X widgets,
> all of which have Makefiles that specify -L/usr/X11R6/lib, having to edit
> the makefiles isn't at all annoying?
pkgsrc already takes care of this for me.
> >Your script would only need to replace any instance of -Lblah on the
> >command line with -Lblah -Wl,-Rblah, and pass them on to gcc.
> Makes sense. Hmm. Perhaps an alternative solution, and sufficient for most
> day-to-day purposes, would be to have something like ld.so.conf suggest
> /usr/pkg/lib and /usr/X11R6/lib by default on systems where they exist.
ld.so.conf already has support for that. Alternately, you could add the
appropriate paths to your LD_LIBRARY_PATH environment variable.