From 2026e3002eac5f7389697883b36eb1c4090e8c46 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Mon, 14 Aug 2023 18:36:27 +0300 Subject: [PATCH] c++ dyn lib for android --- librocksdb-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/librocksdb-sys/build.rs b/librocksdb-sys/build.rs index f96458a..94061f0 100644 --- a/librocksdb-sys/build.rs +++ b/librocksdb-sys/build.rs @@ -201,6 +201,7 @@ fn build_rocksdb() { config.define("ROCKSDB_PLATFORM_POSIX", None); config.define("ROCKSDB_LIB_IO_POSIX", None); config.define("OPENSSL_NO_STDIO", None); + config.define("ANDROID_STL", "c++_shared"); config.define("_REENTRANT", None); config.flag("-fno-builtin-memcmp"); } else if target.contains("linux") {