diff options
author | Peter Simons <simons@cryp.to> | 2009-07-08 09:24:01 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2009-07-08 09:24:01 +0000 |
commit | 499c69c32c7e3b2d9bb7591620a5bc55d83c4b1a (patch) | |
tree | d01c75e4e69c9a64151ebf799428478565156fee /pkgs/tools/networking/pdsh | |
parent | ea808c50ce4fe6a6a02182b6b9b9bc18bf2b3a37 (diff) |
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/networking/pdsh')
-rw-r--r-- | pkgs/tools/networking/pdsh/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/networking/pdsh/default.nix b/pkgs/tools/networking/pdsh/default.nix index 81327c84bf5b..7e5cef8f4ed4 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" |