def initialize(name, opts = {})
super
- @command = "pkg-config --silence-errors"
+ @command = "pkg-config"
end
protected
def lookup_flags(f)
f = :modversion if f == :version
- tmp = `#{@command} --#{f} #{@name}`.strip.tr("\n", "/")
+ tmp = `#{@command} --silence-errors --#{f} #{@name}`.
+ strip.tr("\n", "/")
$?.exitstatus.zero? ? tmp : nil
end
end