gflags: add pkgsStatic support
This commit is contained in:
parent
d567c7e497
commit
93da24ca80
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, cmake }:
|
||||
{ stdenv, fetchFromGitHub, cmake, enableShared ? true}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gflags";
|
||||
@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
|
||||
preConfigure = "rm BUILD";
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
"-DBUILD_STATIC_LIBS=ON"
|
||||
"-DGFLAGS_BUILD_SHARED_LIBS=${if enableShared then "ON" else "OFF"}"
|
||||
"-DGFLAGS_BUILD_STATIC_LIBS=ON"
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
@ -176,6 +176,9 @@ in {
|
||||
gmp = super.gmp.override {
|
||||
withStatic = true;
|
||||
};
|
||||
gflags = super.gflags.override {
|
||||
enableShared = false;
|
||||
};
|
||||
glog = super.glog.override {
|
||||
static = true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user