aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/google-perftools.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/google-perftools.rb b/Library/Formula/google-perftools.rb
index 6fb14345d..928de5638 100644
--- a/Library/Formula/google-perftools.rb
+++ b/Library/Formula/google-perftools.rb
@@ -11,6 +11,10 @@ class GooglePerftools < Formula
cause "Segfault during linking"
end
+ def patches
+ DATA
+ end
+
def install
ENV.append_to_cflags '-D_XOPEN_SOURCE'
system "./configure", "--disable-dependency-tracking",
@@ -19,3 +23,14 @@ class GooglePerftools < Formula
system "make install"
end
end
+
+__END__
+--- a/src/static_vars.cc
++++ b/src/static_vars.cc
+@@ -37,6 +37,7 @@
+ #include "common.h"
+ #include "sampler.h" // for Sampler
+ #include "base/googleinit.h"
++#include <pthread.h>
+
+ namespace tcmalloc {