summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/mkmf.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 86fc49155a..044d72777a 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -387,8 +387,9 @@ module MakeMakefile
if opts and opts[:werror]
result = nil
Logging.postpone do |log|
- result = (system(libpath_env, command) and File.zero?(log.path))
- ""
+ output = IO.popen(libpath_env, command, &:read)
+ result = ($?.success? and File.zero?(log.path))
+ output
end
result
else