mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 02:26:02 +08:00
[rocksdb] Supported static linking in Linux (#6144)
* [rocksdb] Supported static linking in Linux * Updated rocksdb CONTROL version
This commit is contained in:
parent
45b618869d
commit
68759e0dfe
18
ports/rocksdb/0005-static-linking-in-linux.patch
Normal file
18
ports/rocksdb/0005-static-linking-in-linux.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0303186..2b09591 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -741,7 +741,12 @@ if(WIN32)
|
||||
set(LIBS ${ROCKSDB_STATIC_LIB} ${THIRDPARTY_LIBS} ${SYSTEM_LIBS})
|
||||
else()
|
||||
set(SYSTEM_LIBS ${CMAKE_THREAD_LIBS_INIT})
|
||||
- set(LIBS ${ROCKSDB_SHARED_LIB} ${THIRDPARTY_LIBS} ${SYSTEM_LIBS})
|
||||
+
|
||||
+ if(ROCKSDB_DISABLE_INSTALL_SHARED_LIB)
|
||||
+ set(LIBS ${ROCKSDB_STATIC_LIB} ${THIRDPARTY_LIBS} ${SYSTEM_LIBS})
|
||||
+ else()
|
||||
+ set(LIBS ${ROCKSDB_SHARED_LIB} ${THIRDPARTY_LIBS} ${SYSTEM_LIBS})
|
||||
+ endif()
|
||||
|
||||
add_library(${ROCKSDB_SHARED_LIB} SHARED ${SOURCES})
|
||||
target_link_libraries(${ROCKSDB_SHARED_LIB}
|
@ -1,5 +1,5 @@
|
||||
Source: rocksdb
|
||||
Version: 5.18.3
|
||||
Version: 5.18.3-1
|
||||
Description: A library that provides an embeddable, persistent key-value store for fast storage
|
||||
Default-Features: zlib
|
||||
|
||||
|
@ -11,6 +11,7 @@ vcpkg_from_github(
|
||||
0002-only-build-one-flavor.patch
|
||||
0003-zlib-findpackage.patch
|
||||
0004-use-find-package.patch
|
||||
0005-static-linking-in-linux.patch
|
||||
)
|
||||
|
||||
file(REMOVE "${SOURCE_PATH}/cmake/modules/Findzlib.cmake")
|
||||
|
Loading…
Reference in New Issue
Block a user