Skip to content

Commit 21424ed

Browse files
committed
On linux and darwin, ensure we can resolve dlopen et al
Fixes #634
1 parent 3d93011 commit 21424ed

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
steps:
107107
- run: |
108108
dnf group install -y "C Development Tools and Libraries"
109-
dnf install -y ruby ruby-devel
109+
dnf install -y ruby ruby-devel patch
110110
- uses: actions/checkout@v4
111111
- run: bundle install
112112
- run: bundle exec rake compile -- --disable-system-libraries

ext/sqlite3/extconf.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ def darwin?
194194
RbConfig::CONFIG["target_os"].include?("darwin")
195195
end
196196

197+
def windows?
198+
RbConfig::CONFIG["target_os"].match?(/mingw|mswin/)
199+
end
200+
197201
def print_help
198202
print(<<~TEXT)
199203
USAGE: ruby #{$PROGRAM_NAME} [options]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
commit d9eae6b7 (HEAD -> master, origin/master, origin/HEAD)
2+
Author: stephan <[email protected]>
3+
Date: 2025-07-04 17:20:37 +0000
4+
5+
Propagate the -ldl and -lpthread flags, if needed, into sqlite3.pc, per request in [forum:44a58c807353162f | forum post 44a58c807353162f].
6+
7+
FossilOrigin-Name: 64f5f14322349b47451b8cac03bf8cd6f1ae45a8822e7f1ddee3d0b265047501
8+
9+
--- a/sqlite3.pc.in
10+
+++ b/sqlite3.pc.in
11+
@@ -9,5 +9,5 @@ Name: SQLite
12+
Description: SQL database engine
13+
Version: @PACKAGE_VERSION@
14+
Libs: -L${libdir} -lsqlite3
15+
-Libs.private: @LDFLAGS_MATH@ @LDFLAGS_ZLIB@ @LDFLAGS_ICU@
16+
+Libs.private: @LDFLAGS_MATH@ @LDFLAGS_ZLIB@ @LDFLAGS_DLOPEN@ @LDFLAGS_PTHREAD@ @LDFLAGS_ICU@
17+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)