Re: binutils 2.28 breaking libtool for test programs when -no-install is used

Thomas Jahns <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
On 05/31/2017 01:15 PM, Vincent Lefevre wrote:
> On 2017-05-31 11:58:05 +0200, Thomas Jahns wrote:
>> On 05/30/2017 06:30 PM, Vincent Lefevre wrote:
>>> On 2017-05-30 17:39:14 +0200, Thomas Jahns wrote:
>>>> I repeat: don't set LD_LIBRARY_PATH, that's the real problem, libtool not
>>>> working for you is just a symptom of that.
>>>
>>> So, how can I make things work *automatically* under Linux without
>>> setting LD_LIBRARY_PATH?
>>
>> Your binaries and shared objects need to contain the correct RPATH or
>> RUNPATH entries, there is several tools to help with that:
>
> GCC doesn't generate such entries, and the user shouldn't have
> to use alternate tools.

GCC doesn't generate binaries or shared libraries, ld does. Passing

-Wl,-rpath,/path/to/dependency/lib

will do just what's needed (for most people on this list libtool does so for them).

Regards, Thomas

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
smime.p7s (application/pkcs7-signature, 4.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.