Skip to content

Commit

Permalink
Merge pull request #101055 from basvandijk/rocksdb-optionally-disable…
Browse files Browse the repository at this point in the history
…-shared-lib-release-20.09

rocksdb: support disabling building shared lib
  • Loading branch information
basvandijk committed Oct 19, 2020
2 parents dfe0fba + d56b86a commit ba2ec48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/rocksdb/default.nix
Expand Up @@ -9,6 +9,7 @@
, zlib
, zstd
, enableLite ? false
, enableShared ? true
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -58,7 +59,7 @@ stdenv.mkDerivation rec {
"-DFORCE_SSE42=1")
(stdenv.lib.optional enableLite "-DROCKSDB_LITE=1")
"-DFAIL_ON_WARNINGS=${if stdenv.hostPlatform.isMinGW then "NO" else "YES"}"
];
] ++ stdenv.lib.optional (!enableShared) "-DROCKSDB_BUILD_SHARED=0";

# otherwise "cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]"
hardeningDisable = stdenv.lib.optional stdenv.hostPlatform.isWindows "format";
Expand Down

0 comments on commit ba2ec48

Please sign in to comment.