1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Also the tests should use the configured pkg-config

This commit is contained in:
Nobuyoshi Nakada 2022-09-11 16:40:20 +09:00
parent 7f1ca66642
commit de9c612d63
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2022-10-02 17:29:48 +09:00

View file

@ -3,7 +3,7 @@ require_relative 'base'
require 'shellwords' require 'shellwords'
class TestMkmfPkgConfig < TestMkmf class TestMkmfPkgConfig < TestMkmf
PKG_CONFIG = find_executable0("pkg-config") PKG_CONFIG = config_string("PKG_CONFIG") {|path| find_executable0(path)}
def setup def setup
super super
@ -26,7 +26,7 @@ class TestMkmfPkgConfig < TestMkmf
Cflags: -I${includedir}/cflags-I --cflags-other Cflags: -I${includedir}/cflags-I --cflags-other
EOF EOF
@pkg_config_path, ENV["PKG_CONFIG_PATH"] = ENV["PKG_CONFIG_PATH"], File.join(Dir.pwd, "fixtures") @pkg_config_path, ENV["PKG_CONFIG_PATH"] = ENV["PKG_CONFIG_PATH"], @fixtures_dir
end end
end end