[Nix-dev] Re: [Nix-commits] SVN commit: nix - 14980 - eelco - in nixpkgs/branches/stdenv-updates/pkgs: applications/video/xine-ui top-level

Eelco Dolstra e.dolstra at tudelft.nl
Tue Apr 14 09:41:55 CEST 2009


Hi,

Ludovic Courtès wrote:

>> * xine-ui: put $gcc/lib in the RPATH, because otherwise it will barf
>>   (on exit) with "libgcc_s.so.1 must be installed for pthread_cancel
>>   to work".
> 
> Unfortunately, that's not going to scale well if we must do that for
> each and every application that needs it (there are a few of them).

I've found a slightly better way: just add -lgcc_s to NIX_LDFLAGS.  Then we
don't need the -rpath and dontPatchELF flags.  But you still need to specify it
for all packages that need it.

> There's something strange though.  Other binaries that use
> pthread_cancel(3), such as `libstdc++.so', `lzma', and `ed2k', have
> `libgcc_s.so' marked as NEEDED.

Presumably because they link against libgcc_s anyway.  For instance, all (?) C++
programs link against it.  Therefore pthread_cancel happens to work as a
side-effect :-)

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list