Index: Makefile.in =================================================================== --- Makefile.in (revision 89791) +++ Makefile.in (working copy) @@ -85,6 +85,9 @@ BUILTIN_TRANSOBJS = @BUILTIN_TRANSOBJS@ POSTLINK = @POSTLINK@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ + RUBY_BASE_NAME=@RUBY_BASE_NAME@ RUBY_PROGRAM_VERSION=@RUBY_PROGRAM_VERSION@ RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@ Index: common.mk =================================================================== --- common.mk (revision 89791) +++ common.mk (working copy) @@ -172,7 +172,8 @@ EXTS_MK = exts.mk $(EXTS_MK): $(MKFILES) all-incs $(PREP) $(RBCONFIG) $(LIBRUBY) $(ECHO) generating makefile $@ - $(Q)$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" --command-output=$(EXTS_MK) $(EXTMK_ARGS) configure + $(Q) PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + $(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" --command-output=$(EXTS_MK) $(EXTMK_ARGS) configure configure-ext: $(EXTS_MK) --- configure.orig 2021-11-09 21:17:53.000000000 +0900 +++ configure 2021-11-09 21:18:14.000000000 +0900 @@ -782,6 +782,7 @@ CP RM PKG_CONFIG +PKG_CONFIG_PATH PYTHON DOXYGEN DOT @@ -951,7 +952,8 @@ CXX CXXFLAGS CCC -CPP' +CPP +PKG_CONFIG_PATH' # Initialize some variables set by options.