mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
rocksdb: support disabling building shared lib
This is needed to build `pkgsStatic.rocksdb`.
This commit is contained in:
parent
93c5c61908
commit
c6109efca6
@ -9,6 +9,7 @@
|
||||
, zlib
|
||||
, zstd
|
||||
, enableLite ? false
|
||||
, enableShared ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user