Subject: Re: patch to allow /etc/ configure directories for ELF
To: I can teach you how to fish... <>
From: Chris G. Demetriou <>
List: tech-userlevel
Date: 03/11/1999 10:38:43 (I can teach you how to fish...) writes:
> ...but isn't RPATH used in conjunction with LPATH when cross-compiling?

What are you talking about?  Do you have any idea what RPATH is?
(I have no idea what LPATH is, or even that it is.)

RPATH has a very specific meaning in the context of ELF.

> ...and isn't useful during a standard compile?

What do you mean?

> Forgive my ignorance, but I don't see that the two are mutually exclusive.

You can use ELF RPATH specs in conjunction with, and have a
functional result.

However, the rationale behind them are, pretty much, mutually

Use of RPATH indicates that, when compiling, the final library
directory paths are known and can be put into the binaries.
i.e. something like is unnecesary.

Use of indicates that when compiling, library directory
paths are not known.

Using them together leaves you in the situation where either:

(1) the paths specified in RPATH directives are correct, and the paths
in are therefore unnecessary, or

(2) the paths specified in RPATH directives are incorrect, in which
case you want to use's paths, but may encounter
... interesting behaviour if there exist libraries you're searching
for in the RPATH'd directory/directories...

So, in my opinion, technically they are not mutually exclusive, but
conceptually, and probably from a security/reliability perspective,
they are.

Chris Demetriou - -
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.