summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2009-07-08 09:24:01 +0000
committerPeter Simons <simons@cryp.to>2009-07-08 09:24:01 +0000
commit499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a (patch)
treed01c75e4e69c9a64151ebf799428478565156fee /pkgs/tools
parentea808c50ce4fe6a6a02182b6b9b9bc18bf2b3a37 (diff)
downloadnixpkgs-499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a.tar
nixpkgs-499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a.tar.gz
nixpkgs-499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a.tar.bz2
nixpkgs-499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a.tar.lz
nixpkgs-499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a.tar.xz
nixpkgs-499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a.tar.zst
nixpkgs-499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a.zip
pdsh used to fail with an error because it couldn't locate libgcc_s.so.1.
Adding NIX_LDFLAGS="-lgcc_s" to the expression remedies that problem. Arguably,
though, this is a bad solution.

svn path=/nixpkgs/trunk/; revision=16239
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/pdsh/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/networking/pdsh/default.nix b/pkgs/tools/networking/pdsh/default.nix
index 81327c84bf5..7e5cef8f4ed 100644
--- a/pkgs/tools/networking/pdsh/default.nix
+++ b/pkgs/tools/networking/pdsh/default.nix
@@ -12,6 +12,12 @@ stdenv.mkDerivation rec {
     sha256 = "8c94acb17b4af8a9f553db180b4d5745c9c98844a5dc070e2ce80590e8e8a539";
   };
   buildInputs = [perl readline ssh pam];
+
+  /* pdsh uses pthread_cancel(), which requires libgcc_s.so.1 to be
+     loadable at run-time. Adding the flag below ensures that the
+     library can be found. Obviously, though, this is a hack. */
+  NIX_LDFLAGS="-lgcc_s";
+
   # Setting --with-machines=$out in configureFlags doesn't seem to work,
   # so I specify configurePhase instead.
   configurePhase = "./configure --prefix=$out --with-machines=$out/etc/machines"