rocksdb-native 3.5.7 → 3.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CMakeLists.txt CHANGED
@@ -15,6 +15,10 @@ endif()
15
15
 
16
16
  fetch_package("github:holepunchto/librocksdb#4a8e385")
17
17
 
18
+ if(TARGET c++)
19
+ target_link_libraries(rocksdb PUBLIC c++)
20
+ endif()
21
+
18
22
  add_bare_module(rocksdb_native_bare)
19
23
 
20
24
  target_sources(
@@ -34,6 +38,14 @@ target_link_libraries(
34
38
  path
35
39
  )
36
40
 
41
+ if(target MATCHES "linux" AND NOT TARGET c++)
42
+ target_link_options(
43
+ ${rocksdb_native_bare}
44
+ PUBLIC
45
+ -static-libstdc++
46
+ )
47
+ endif()
48
+
37
49
  add_napi_module(rocksdb_native_napi)
38
50
 
39
51
  target_sources(
@@ -53,6 +65,14 @@ target_link_libraries(
53
65
  path
54
66
  )
55
67
 
68
+ if(target MATCHES "linux")
69
+ target_link_options(
70
+ ${rocksdb_native_napi}
71
+ PUBLIC
72
+ -static-libstdc++
73
+ )
74
+ endif()
75
+
56
76
  resolve_node_module(bare-compat-napi compat)
57
77
 
58
78
  target_include_directories(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rocksdb-native",
3
- "version": "3.5.7",
3
+ "version": "3.5.9",
4
4
  "description": "librocksdb bindings for JavaScript",
5
5
  "exports": {
6
6
  ".": "./index.js",