rocksdb: fix darwin build

This commit is contained in:
Franz Pletz 2019-12-27 04:57:58 +01:00
parent 9cc67f39f8
commit d9d9d3196f
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
substituteInPlace CMakeLists.txt --replace "find_package(zlib " "find_package(ZLIB "
'';
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-copy -Wno-error=pessimizing-move";
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=deprecated-copy -Wno-error=pessimizing-move";
cmakeFlags = [
"-DPORTABLE=1"