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 c...@case.edu http://tiswww.cwru.edu/~chet/