[Nix-dev] Adding runtime library search path

2013-01-26 Thread Vladimír Čunát
Hi. I'm having a problem with a program trying to find libgcc_s.so at runtime. I see that gcc has been stripped from rpath, which is probably the cause of the problem. How to easily add one particular entry without preventing deletion of other unnecessary rpath entries? Thanks, Vlada s

Re: [Nix-dev] Adding runtime library search path

2013-01-26 Thread Marc Weber
> How to easily add one particular entry without preventing deletion of > other unnecessary rpath entries? patchelf also has a --print-rpath option. Marc Weber ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listi

Re: [Nix-dev] Adding runtime library search path

2013-01-26 Thread Vladimír Čunát
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 i

Re: [Nix-dev] Adding runtime library search path

2013-01-26 Thread Lluís Batlle i Rossell
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

Re: [Nix-dev] Adding runtime library search path

2013-01-26 Thread Vladimír Čunát
On 01/26/2013 04:18 PM, Lluís Batlle i Rossell wrote: On Sat, Jan 26, 2013 at 03:00:02PM +0100, Vladimír Čunát wrote: 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 ha

Re: [Nix-dev] Adding runtime library search path

2013-01-26 Thread Vladimír Čunát
On 01/26/2013 02:44 PM, Vladimír Čunát wrote: I'm having a problem with a program trying to find libgcc_s.so at runtime. I see that gcc has been stripped from rpath, which is probably the cause of the problem. BTW, I confirm that setting dontPatchELF seems to solve the problem, but there may b

Re: [Nix-dev] Adding runtime library search path

2013-01-26 Thread Peter Simons
Hi Vladimír, adding NIX_CFLAGS_LINK = "-lgcc_s"; to the build expression should do the trick. Take care, Peter ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Adding runtime library search path

2013-01-26 Thread Vladimír Čunát
On 01/26/2013 08:59 PM, Peter Simons wrote: adding NIX_CFLAGS_LINK = "-lgcc_s"; to the build expression should do the trick. That's what I was searching for, thanks, it works. The result: https://github.com/NixOS/nixpkgs/pull/278 I still don't understand the difference from NIX_LDFLAGS, t