> Some platforms (OSF/cc, HPUX) are already using -rpath or equivalent, so
> you don't have to specify a shared library search path at runtime. I think
> that a lot more platforms could use this. Can people comment on whether
> and how it works on their platform? Essentially,
> LDFLAGS+=-rpath '$(libdir)'
For linux (at least gcc 2.7.x and 2.95.2 systems):
if specified in the compilation step,
-Wl,-rpath $(libdir)
or if specified directly to the linker
-rpath $(libdir)
- Thomas