Subject: Re: RPATH (was Re: new packages)
To: Hubert Feyrer <>
From: Todd Vierling <>
List: tech-pkg
Date: 08/10/1998 10:51:15
On Mon, 10 Aug 1998, Hubert Feyrer wrote:

: > This is even easier with GNU pkgs.  If you add
: > (or X11BASE, or both, as appropriate), it will DTRT automatically.
: Couldn't we make some shorthand in our our toolchan for that, say - "-L"?

The GNU binutils ld does this for Solamis and StunOS.  I hacked it out in my
cross environments.

In short, NO.  Please, no.

Using -L to automatically interject rpath paths is very broken.  I don't
want my pico binary trying to find its shared libraries at runtime in
/usr/pkgsrc/editors/pico/work.alpha/pico/.libs, whether or not that path
even exists at runtime.

Worse yet, I definitely do not want binaries looking in
/usr/pkg/cross/alpha-netbsd1.3/lib for shared libraries when newer ones are
in /usr/lib.  I cross-compile for older NetBSD releases such that I can both
test the integrity of pkgs against 1.3, and have a binary pkg that can be
used on a non-current box.

When I found out that the alpha linker does not use -L to create rpaths, I
was considerably relieved.

-- Todd Vierling (Personal; Bus.