libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Bob Friesenhahn
Subject: Re: Q: Forcing a -Wl,-rpath arg to static lib users
Date: Thu, 17 Nov 2022 17:51:43 -0600 (CST)
User-agent: Alpine 2.20 (GSO 67 2015-01-07)

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
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]