bug-bash
[Top][All Lists]
Advanced

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

Re: Installing bash with rpath


From: Chet Ramey
Subject: Re: Installing bash with rpath
Date: Wed, 23 Jan 2019 09:13:41 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

On 1/23/19 8:39 AM, Mohammad Akhlaghi wrote:
> On 1/22/19 2:25 PM, Chet Ramey wrot
>> The bash link step doesn't do anything with rpath.
>>
>> The readline Makefiles set rpath to the installed location of the library
>> at build time (using $libdir), so if you install it somewhere else that's
>> going to be wrong. It should probably use $(DESTDIR)$(libdir) if that's
>> what you use to install your copy of readline.
> 
> Indeed, I don't modify the installation directory of readline and rpath
> works fine there.
> 
> Is there any special reason that rpath isn't managed for Bash (similar to
> how its managed for readline)?

Because bash, by default, links statically with its own copy of readline.
If you want to do things differently, there is a mechanism: specify the
--rpath option to the linker. I don't know why that's not working for you.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

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