3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libunwind/default.nix
Eelco Dolstra fb91bc3530 * libunwind: pass -fPIC on x86_64-linux. This is necessary for Samba
to compile.

svn path=/nixpkgs/trunk/; revision=13267
2008-11-12 15:59:38 +00:00

20 lines
554 B
Nix

{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";
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";
};
}