From 31507bc2740f193b7ca7018c5a13f68257388664 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 25 Mar 2012 19:40:04 +0000 Subject: [PATCH] nbd: don't try to link -lrt and -lpthread on non-Linux platforms svn path=/nixpkgs/trunk/; revision=33412 --- pkgs/tools/networking/nbd/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/nbd/default.nix b/pkgs/tools/networking/nbd/default.nix index a478fe9454c..987b5d261cd 100644 --- a/pkgs/tools/networking/nbd/default.nix +++ b/pkgs/tools/networking/nbd/default.nix @@ -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";