Subject: Re: libtool problem with runtime shlib path propagation
To: Nick Hudson <skrll@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-toolchain
Date: 02/14/2002 12:20:17
skrll@netbsd.org said:
> Are you sure that the libtool -R option isn't good enough here? -R is
> converted by libtool to the correct options for the linker used.
-R would be good enough probably - for libtool.
The problem is that it doesn't work with non-libtool
linker calls. Many Makefile patches simply substitute eg
"${CC}" by "${LIBTOOL} --mode=link ${CC}". And the gnome-
style config scripts mentioned should work whether libtool
is used or not.
> -Wl,-R is a hack if you ask me.
Well, may be. But it is used everywhere in the pkg system:
passed as environment to "configure" scripts, in the "gnome"
scripts and in 1000 patches.
This and some variations like "-Wl,-rpath -Wl,<path>", and
maybe something involving "-Xlinker".
best regards
Matthias