Re: Installing bash with rpath

2019-01-23 Thread Mohammad Akhlaghi
On 1/23/19 2:13 PM, Chet Ramey wrote: 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 --rpat

Re: Installing bash with rpath

2019-01-23 Thread Mohammad Akhlaghi
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)

Re: Installing bash with rpath

2019-01-20 Thread Mohammad Akhlaghi
On 1/21/19 12:25 AM, Chet Ramey wrote: Isn't there a linker option you can supply, possibly as part of LDFLAGS, to embed that into the bash binary? I pass `-Wl,-rpath-link=$instdir/lib' to LDFLAGS. It sets RPATH properly on all the programs I install (including libreadline, and many other bas

Re: Installing bash with rpath

2019-01-20 Thread Mohammad Akhlaghi
Thank you very much for the prompt reply, On 1/20/19 7:54 PM, Chet Ramey wrote: On 1/20/19 12:03 PM, Mohammad Akhlaghi wrote: Dear Bash developers, I am trying to build Bash for a relatively closed environment where I don't want the Bash executable to link with the system's libre

Installing bash with rpath

2019-01-20 Thread Mohammad Akhlaghi
Dear Bash developers, I am trying to build Bash for a relatively closed environment where I don't want the Bash executable to link with the system's libreadline and libncursesw, but my own installation of these libraries. However, even when I configure bash with `--enable-rpath', and add `-W