rocksdb_lite: Fix

This commit is contained in:
Silvan Mosberger 2018-04-04 03:23:24 +02:00
parent b705ac629f
commit 3f9876a253
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7

View File

@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
CMAKE_CXX_FLAGS = "-std=gnu++11";
JEMALLOC_LIB = stdenv.lib.optionalString (malloc == jemalloc) "-ljemalloc";
${if enableLite then "LIBNAME" else null} = "librocksdb_lite";
LIBNAME = "librocksdb${stdenv.lib.optionalString enableLite "_lite"}";
${if enableLite then "CXXFLAGS" else null} = "-DROCKSDB_LITE=1";
buildAndInstallFlags = [
@ -68,7 +68,7 @@ stdenv.mkDerivation rec {
echo "BUILD CONFIGURATION FOR SANITY CHECKING"
cat make_config.mk
mkdir -pv $static/lib/
mv -vi $out/lib/librocksdb.a $static/lib/
mv -vi $out/lib/${LIBNAME}.a $static/lib/
'';
enableParallelBuilding = true;