diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-08-05 21:34:03 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2025-08-05 23:37:51 +0900 |
| commit | 79d8a3159f60d32396c8281fe438e86ab97e3daa (patch) | |
| tree | edda86d3a0e71b25dcd22d9b6615734d43bad152 | |
| parent | 8e9ea4c202fb104d7c17ad1f3cc59d697120501a (diff) | |
Check if the found pkg-config is usable actually
| -rw-r--r-- | test/mkmf/test_pkg_config.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mkmf/test_pkg_config.rb b/test/mkmf/test_pkg_config.rb index d0a2dc130a..abeaf548f8 100644 --- a/test/mkmf/test_pkg_config.rb +++ b/test/mkmf/test_pkg_config.rb @@ -3,7 +3,9 @@ require_relative 'base' require 'shellwords' class TestMkmfPkgConfig < TestMkmf - PKG_CONFIG = config_string("PKG_CONFIG") {|path| find_executable0(path)} + PKG_CONFIG = config_string("PKG_CONFIG") do |path| + find_executable0(path, "--version") {$?.success?} + end def setup super |
