* libunwind: pass -fPIC on x86_64-linux. This is necessary for Samba
to compile. svn path=/nixpkgs/trunk/; revision=13267
This commit is contained in:
parent
4f61f1a7bc
commit
fb91bc3530
@ -1,14 +1,19 @@
|
|||||||
args: with args;
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libunwind-0.98.6";
|
name = "libunwind-0.98.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.savannah.nongnu.org/releases/libunwind/${name}.tar.gz";
|
url = "http://download.savannah.nongnu.org/releases/libunwind/${name}.tar.gz";
|
||||||
sha256 = "1qfxqkyx4r5dmwajyhvsyyl8zwxs6n2rcg7a61fgfdfp0gxvpzgx";
|
sha256 = "1qfxqkyx4r5dmwajyhvsyyl8zwxs6n2rcg7a61fgfdfp0gxvpzgx";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = "--enable-shared --disable-static";
|
configureFlags = "--enable-shared --disable-static";
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.nongnu.org/libunwind;
|
homepage = http://www.nongnu.org/libunwind;
|
||||||
description = "The primary goal of this project is to define a portable
|
description = "A portable and efficient API to determine the call-chain of a program";
|
||||||
and efficient API to determine the call-chain of a program";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user