Skip to content

Commit 155c6db

Browse files
committed
ext: work around Ruby 3.1.3 mkmf issue
See https://bugs.ruby-lang.org/issues/19233
1 parent 57453eb commit 155c6db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/sqlite3/extconf.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def configure_packaged_libraries
6969
# on macos, pkg-config will not return --cflags without this
7070
ENV["PKG_CONFIG_ALLOW_SYSTEM_CFLAGS"] = "t"
7171

72+
# only needed for Ruby 3.1.3, see https://bugs.ruby-lang.org/issues/19233
73+
RbConfig::CONFIG["PKG_CONFIG"] = config_string("PKG_CONFIG") || "pkg-config"
74+
7275
lib_path = File.join(recipe.path, "lib")
7376
pcfile = File.join(lib_path, "pkgconfig", "sqlite3.pc")
7477
abort_pkg_config("pkg_config") unless pkg_config(pcfile)

0 commit comments

Comments
 (0)