Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sqlite3]: Shared library support for Linux #6856

Merged
merged 6 commits into from
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ports/sqlite3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ project(sqlite3 C)

include_directories(.)
if(BUILD_SHARED_LIBS)
set(API "-DSQLITE_API=__declspec(dllexport)")
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(API "-DSQLITE_API=__attribute__((visibility(\"default\")))")
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" OR CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
jumpinjackie marked this conversation as resolved.
Show resolved Hide resolved
set(API "-DSQLITE_API=__declspec(dllexport)")
endif()
else()
set(API "-DSQLITE_API=extern")
endif()
Expand Down
2 changes: 1 addition & 1 deletion ports/sqlite3/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: sqlite3
Version: 3.27.2
Version: 3.27.2-1
Description: SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.

Feature: tool
Expand Down