On Oct 16, 2013, at 5:17, Eelco Dolstra <[email protected]> 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 > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
