[sqlite3] Fix .pc (#22121)

Android does not have -lpthread
This commit is contained in:
Matthias Kuhn 2021-12-22 05:12:49 +01:00 committed by GitHub
parent 6072bc13ab
commit 1cd11e2ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -65,7 +65,10 @@ install(FILES sqlite3.h sqlite3ext.h DESTINATION include CONFIGURATIONS Release)
install(EXPORT unofficial-sqlite3-targets NAMESPACE unofficial::sqlite3:: FILE unofficial-sqlite3-targets.cmake DESTINATION share/unofficial-sqlite3) install(EXPORT unofficial-sqlite3-targets NAMESPACE unofficial::sqlite3:: FILE unofficial-sqlite3-targets.cmake DESTINATION share/unofficial-sqlite3)
if(UNIX) if(UNIX)
set(PKGCONFIG_LIBS_PRIVATE "-lm -ldl -lpthread") set(PKGCONFIG_LIBS_PRIVATE "-lm -ldl")
if(NOT ANDROID)
string(APPEND PKGCONFIG_LIBS_PRIVATE " -lpthread")
endif()
else() else()
set(PKGCONFIG_LIBS_PRIVATE "") set(PKGCONFIG_LIBS_PRIVATE "")
endif() endif()

View File

@ -1,6 +1,7 @@
{ {
"name": "sqlite3", "name": "sqlite3",
"version": "3.37.0", "version": "3.37.0",
"port-version": 1,
"description": "SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.", "description": "SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.",
"homepage": "https://sqlite.org/", "homepage": "https://sqlite.org/",
"dependencies": [ "dependencies": [

View File

@ -6546,7 +6546,7 @@
}, },
"sqlite3": { "sqlite3": {
"baseline": "3.37.0", "baseline": "3.37.0",
"port-version": 0 "port-version": 1
}, },
"sqlitecpp": { "sqlitecpp": {
"baseline": "3.1.1", "baseline": "3.1.1",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "abbe21d1a38c7eb9e8c87965235d92721001e997",
"version": "3.37.0",
"port-version": 1
},
{ {
"git-tree": "51ffa2ba781101e70546d4e6956d31f69a59cee6", "git-tree": "51ffa2ba781101e70546d4e6956d31f69a59cee6",
"version": "3.37.0", "version": "3.37.0",