On 1/20/19 6:28 PM, Mohammad Akhlaghi wrote:
> Yes, I configure Bash using the `--with-installed-readline' and set
> LDFLAGS. It builds and installs successfully and there is no problem in
> that part.
>
> The problem is in running bash. I have installed Bash 5.0 and the
> respective libreadline and libncursesw in a non-standard directory (I don't
> have root access on the system). So, it will crash (because of not finding
> libreadline) unless I set LD_LIBRARY_PATH.
>
> I am trying to find a way to embed RPATH in the bash executable so I don't
> have to set LD_LIBRARY_PATH before calling bash (and thus inheriting this
> directory to everything that I call under bash).
Isn't there a linker option you can supply, possibly as part of LDFLAGS,
to embed that into the bash binary?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/