Re: Q: Forcing a -Wl,-rpath arg to static lib users

Bob Friesenhahn <[email protected]> Thu, 17 Nov 2022 17:51:43 -0600 (CST)
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
On Wed, 16 Nov 2022, Oleg Smolsky wrote:
>
> Leaving it here for posterity. Perhaps someone will do this with a bit more
> finesse and turn it into a proper feature.

Are you using libtool as originally distributed by the FSF or are you 
using a libtool provided by a Linux system package?

The libtool provided as part of a Linux distribution often hacks 
libtool so that it does not include full dependency information in the 
library.la files.  They do this in order to avoid "excessive linkage" 
because they do not want the program/library to retain full linkage 
details in case the OS changes the libraries.

Shared libraries often/usually only need to know the libraries that 
they immediately link with, but static libraries need to know 
everything, and the library.la files are intended to fill that gap.

I am thinking that you may be trying to fix something which should 
already be working with the original FSF libtool.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt