[Top][All Lists]

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

Re: Installing bash with rpath

From: Mohammad Akhlaghi
Subject: Re: Installing bash with rpath
Date: Mon, 21 Jan 2019 00:47:50 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

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 basic programs), except for Bash and AWK.

In my built programs, Bash and AWK are the only programs that depend on libreadline, but RPATH does get written into libreadline, so I don't know if the linking with libreadline has any affect on this problem or not.

Is there any step in the build or install of Bash that somehow disables using this method of setting RPATH?

So far I found this work-around: to manually write RPATH into the Bash executable after installation using patchelf: https://nixos.org/patchelf.html . But it would be much better/elegant if this manual intervention wouldn't be necessary.

Thanks a lot,

reply via email to

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