Skip to content

Commit

Permalink
[Bug #19189] Fallback to the default "pkg-config"
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 15, 2022
1 parent d20bd06 commit 613fca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mkmf.rb
Expand Up @@ -1866,7 +1866,7 @@ def pkg_config(pkg, *options)
if pkgconfig = with_config("#{pkg}-config") and find_executable0(pkgconfig)
# if and only if package specific config command is given
elsif ($PKGCONFIG ||=
(pkgconfig = with_config("pkg-config", RbConfig::CONFIG["PKG_CONFIG"])) &&
(pkgconfig = with_config("pkg-config") {config_string("PKG_CONFIG") || "pkg-config"}) &&
find_executable0(pkgconfig) && pkgconfig) and
xsystem([*envs, $PKGCONFIG, "--exists", pkg])
# default to pkg-config command
Expand Down

0 comments on commit 613fca0

Please sign in to comment.