aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/gtest.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/gtest.rb b/Library/Formula/gtest.rb
index a483c4a79..1457c8cb2 100644
--- a/Library/Formula/gtest.rb
+++ b/Library/Formula/gtest.rb
@@ -7,6 +7,9 @@ class Gtest < Formula
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ # gtest-config tries to be clever in locating libraries, but Homebrew's
+ # Cellar confuses it. This lets `gtest-config --libs` work correctly
+ inreplace 'scripts/gtest-config', '`dirname $0`', '$bindir'
system "make install"
end
end