llvmPackages_8.libraries.libunwind: add enableShared option
This commit is contained in:
parent
239fffc90d
commit
cdee3b7966
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, version, fetch, cmake, fetchpatch }:
|
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "libunwind-${version}";
|
name = "libunwind-${version}";
|
||||||
|
@ -19,4 +19,6 @@ stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
cmakeFlags = stdenv.lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,9 +154,11 @@ in {
|
||||||
enableShared = false;
|
enableShared = false;
|
||||||
inherit libcxxabi;
|
inherit libcxxabi;
|
||||||
};
|
};
|
||||||
|
libunwind = super.llvmPackages_8.libraries.libunwind.override {
|
||||||
|
enableShared = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
python27 = super.python27.override { static = true; };
|
python27 = super.python27.override { static = true; };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue