|
From: | Mohammad Akhlaghi |
Subject: | Installing bash with rpath |
Date: | Sun, 20 Jan 2019 17:03:45 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
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 `-Wl,-rpath-link=$my_install/lib' to LDFLAGS, the bash executable doesn't have the absolute address of these libraries in it.
As a result, the only way I can run my installation of Bash is to explicitly add `$my_install/lib' to LD_LIBRARY_PATH.
I use the same recipe (to build Bash) for many other low-level GNU programs, but I don't have this problem for any other executable (they all contain the absolute address of the libraries they link with).
I wanted to see if you have any recommendations to fix this problem. Thank you very much, Mohammad
[Prev in Thread] | Current Thread | [Next in Thread] |