aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 0f588a56ee..be9b06ca51 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1791,7 +1791,8 @@ SRC
# default to pkg-config command
pkgconfig = $PKGCONFIG
get = proc {|opt|
- opt = IO.popen("#{$PKGCONFIG} --#{opt} #{pkg}", err:[:child, :out], &:read)
+ opt = xpopen("#{$PKGCONFIG} --#{opt} #{pkg}", err:[:child, :out], &:read)
+ Logging.open {puts opt.each_line.map{|s|"=> #{s.inspect}"}}
opt.strip if $?.success?
}
elsif find_executable0(pkgconfig = "#{pkg}-config")
@@ -1801,7 +1802,8 @@ SRC
end
if pkgconfig
get ||= proc {|opt|
- opt = IO.popen("#{pkgconfig} --#{opt}", err:[:child, :out], &:read)
+ opt = xpopen("#{pkgconfig} --#{opt}", err:[:child, :out], &:read)
+ Logging.open {puts opt.each_line.map{|s|"=> #{s.inspect}"}}
opt.strip if $?.success?
}
end