nbd: don't try to link -lrt and -lpthread on non-Linux platforms
svn path=/nixpkgs/trunk/; revision=33412
This commit is contained in:
parent
d44e55866a
commit
31507bc274
@ -24,7 +24,7 @@ stdenv.mkDerivation {
|
||||
# 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";
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lrt -lpthread";
|
||||
|
||||
meta = {
|
||||
homepage = "http://nbd.sourceforge.net";
|
||||
|
Loading…
Reference in New Issue
Block a user