about summary refs log tree commit diff
path: root/pkgs/development/libraries/libunwind
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-11-12 15:59:38 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-11-12 15:59:38 +0000
commitfb91bc3530e7a8aa850d8f09a451e6a05957aebf (patch)
treee28772f742a15dbf376df0598a1b4d2fb844b00c /pkgs/development/libraries/libunwind
parent4f61f1a7bcb41219781d838bc784a1e9785e9222 (diff)
downloadnixlib-fb91bc3530e7a8aa850d8f09a451e6a05957aebf.tar
nixlib-fb91bc3530e7a8aa850d8f09a451e6a05957aebf.tar.gz
nixlib-fb91bc3530e7a8aa850d8f09a451e6a05957aebf.tar.bz2
nixlib-fb91bc3530e7a8aa850d8f09a451e6a05957aebf.tar.lz
nixlib-fb91bc3530e7a8aa850d8f09a451e6a05957aebf.tar.xz
nixlib-fb91bc3530e7a8aa850d8f09a451e6a05957aebf.tar.zst
nixlib-fb91bc3530e7a8aa850d8f09a451e6a05957aebf.zip
* libunwind: pass -fPIC on x86_64-linux. This is necessary for Samba
  to compile.

svn path=/nixpkgs/trunk/; revision=13267
Diffstat (limited to 'pkgs/development/libraries/libunwind')
-rw-r--r--pkgs/development/libraries/libunwind/default.nix29
1 files changed, 17 insertions, 12 deletions
diff --git a/pkgs/development/libraries/libunwind/default.nix b/pkgs/development/libraries/libunwind/default.nix
index 52ed30c0ae96..a7dad9d55895 100644
--- a/pkgs/development/libraries/libunwind/default.nix
+++ b/pkgs/development/libraries/libunwind/default.nix
@@ -1,14 +1,19 @@
-args: with args;
+{stdenv, fetchurl}:
+
 stdenv.mkDerivation rec {
-	name = "libunwind-0.98.6";
-	src = fetchurl {
-		url = "http://download.savannah.nongnu.org/releases/libunwind/${name}.tar.gz";
-		sha256 = "1qfxqkyx4r5dmwajyhvsyyl8zwxs6n2rcg7a61fgfdfp0gxvpzgx";
-	};
-	configureFlags = "--enable-shared --disable-static";
-	meta = {
-		homepage = http://www.nongnu.org/libunwind;
-		description = "The primary goal of this project is to define a portable
-		and efficient API to determine the call-chain of a program";
-	};
+  name = "libunwind-0.98.6";
+  
+  src = fetchurl {
+    url = "http://download.savannah.nongnu.org/releases/libunwind/${name}.tar.gz";
+    sha256 = "1qfxqkyx4r5dmwajyhvsyyl8zwxs6n2rcg7a61fgfdfp0gxvpzgx";
+  };
+  
+  configureFlags = "--enable-shared --disable-static";
+
+  NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
+  
+  meta = {
+    homepage = http://www.nongnu.org/libunwind;
+    description = "A portable and efficient API to determine the call-chain of a program";
+  };
 }