Subject: Re: libtool problem with runtime shlib path propagation
To: Matthias Drochner <>
From: Todd Vierling <>
List: tech-toolchain
Date: 02/14/2002 13:52:03
On Wed, 13 Feb 2002, Matthias Drochner wrote:

: A package builds a shared library (using libtool) which
: depends on X11 libraries.
: The linker call looks like
: libtool --mode=link cc -o *.lo -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib
: -lX11

When using libtool, the correct option is "-rpath".  -Wl,-R should only be
used by non-libtoolized packages.  libtool converts "-rpath" to the linker
options detected by libtool's configure step.

-- Todd Vierling <>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support --