nbd: don't try to link -lrt and -lpthread on non-Linux platforms

svn path=/nixpkgs/trunk/; revision=33412
This commit is contained in:
Peter Simons 2012-03-25 19:40:04 +00:00
parent d44e55866a
commit 31507bc274

View File

@ -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";