mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nbd: re-introduced linking with -lrt, and added an additional -lpthread on top of it
Linking these libraries makes sure that they can be found at run-time, because a proper rpath into the Nix store is added to the generated executable. Without that rpath, nbd-server will try to load the system's libpthread.so.0, which may not be what we want. svn path=/nixpkgs/trunk/; revision=33408
This commit is contained in:
parent
fa183b675b
commit
41081c4eb0
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,11 @@ stdenv.mkDerivation {
|
|||
# The test suite doesn't succeed on Hydra.
|
||||
doCheck = false;
|
||||
|
||||
# Glib calls `clock_gettime', which is in librt. Linking that library
|
||||
# here ensures that a proper rpath is added to the executable so that
|
||||
# it can be loaded at run-time.
|
||||
NIX_LDFLAGS = "-lrt -lpthread";
|
||||
|
||||
meta = {
|
||||
homepage = "http://nbd.sourceforge.net";
|
||||
description = "map arbitrary files as block devices over the network";
|
||||
|
|
Loading…
Reference in a new issue