Merge pull request #69483 from nmattia/nm-libpfm-static

libpfm: enable static build
This commit is contained in:
Bas van Dijk 2019-09-26 12:51:18 +02:00 committed by GitHub
commit 4c5cad9f63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, enableShared ? true }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
version = "4.10.1";
pname = "libpfm";
@ -30,4 +30,8 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.pierron ];
platforms = platforms.linux;
};
} // stdenv.lib.optionalAttrs ( ! enableShared )
{
CONFIG_PFMLIB_SHARED = "n";
}
)

View file

@ -95,6 +95,9 @@ in {
libiberty = super.libiberty.override {
staticBuild = true;
};
libpfm = super.libpfm.override {
enableShared = false;
};
ipmitool = super.ipmitool.override {
static = true;
};