mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
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 a new issue