[Nix-dev] Adding runtime library search path

Lluís Batlle i Rossell viric at viric.name
Sat Jan 26 16:18:10 CET 2013


On Sat, Jan 26, 2013 at 03:00:02PM +0100, Vladimír Čunát wrote:
> On 01/26/2013 02:52 PM, Marc Weber wrote:
> >>How to easily add one particular entry without preventing deletion of
> >>other unnecessary rpath entries?
> >patchelf also has a --print-rpath option.
> 
> Yes, that's how I checked that gcc is missing.
> 
> I see now, so in fixupPhase I could --print-rpath and set it with
> gcc added... probably the best way, thanks.

I remember as if something like NIX_LDFLAGS="-lgcc" made it keep the
rpath to gcc/lib. Many packages require that (due to the always-dynamic nature
of glibc), so nixpkgs should have many examples of this.

Regards,
Lluís


More information about the nix-dev mailing list