Skip to content

Commit

Permalink
ext: work around Ruby 3.1.3 mkmf issue
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jan 1, 2023
1 parent ab4b40a commit 06e47b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/sqlite3/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def configure_packaged_libraries
# on macos, pkg-config will not return --cflags without this
ENV["PKG_CONFIG_ALLOW_SYSTEM_CFLAGS"] = "t"

# only needed for Ruby 3.1.3, see https://bugs.ruby-lang.org/issues/19233
RbConfig::CONFIG["PKG_CONFIG"] = config_string("PKG_CONFIG") || "pkg-config"

lib_path = File.join(recipe.path, "lib")
pcfile = File.join(lib_path, "pkgconfig", "sqlite3.pc")
abort_pkg_config("pkg_config") unless pkg_config(pcfile)
Expand Down

0 comments on commit 06e47b4

Please sign in to comment.