[Nix-dev] Correct way to solve `libgcc_s.so.1` problem
Shea Levy
shea at shealevy.com
Wed Oct 16 13:20:22 CEST 2013
On Oct 16, 2013, at 5:17, Eelco Dolstra <eelco.dolstra at logicblox.com> wrote:
> Hi,
>
> On 16/10/13 01:09, Daniel Hlynskyi wrote:
>
>> [6] uqm
>>
>> /* uses pthread_cancel(), which requires libgcc_s.so.1 to be
>> loadable at run-time. Adding the flag below ensures that the
>> library can be found. Obviously, though, this is a hack. */
>> NIX_LDFLAGS="-lgcc_s";
>
> This is the easiest solution and should work in all cases (except 3rd party
> binaries, which need the "patchelf --set-rpath" solution).
>
> Of course, even better would be to fix this globally, but that's not so easy (it
> would require glibc to know the path of libgcc_s, but to do that in glibc would
> create a cyclic dependency). We could have the gcc wrapper add gcc's lib
> directory to the RPATH of every binary, I guess.
>
Please don't do this before multiple outputs is merged :)
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list