mdbx: support for Android/Bionic.

Change-Id: Ia6a4d8a7848ffe3e488b4a92c9ec53c61c78a9bb
This commit is contained in:
Leonid Yuriev
2020-04-13 23:36:56 +03:00
parent 595482ca57
commit ab2c98e41c
6 changed files with 58 additions and 11 deletions

View File

@@ -257,6 +257,9 @@ if(MDBX_BUILD_SHARED_LIBRARY)
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Solaris")
target_link_libraries(mdbx PRIVATE kstat)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
target_link_libraries(mdbx PRIVATE log)
endif()
list(APPEND MDBX_BUILD_FLAGS ${CMAKE_SHARED_LINKER_FLAGS})
endif()
@@ -276,6 +279,9 @@ endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Solaris")
target_link_libraries(mdbx-static INTERFACE kstat)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
target_link_libraries(mdbx-static INTERFACE log)
endif()
# mdbx-tools
if(MDBX_BUILD_TOOLS)