Only pass a single argument to Kernel.exec.
[ruby-vorbistagger.git] / rake / configuretask.rb
index 0cad7ca23116b40ad693588557b7ec49399fc861..2078da41a1eada92eb991b0237d91293732750c4 100644 (file)
@@ -205,14 +205,15 @@ module Rake
                        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