blob: 0cce0c067a63f5cbd93b52beff3fd5cd2b3941ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
require 'formula'
# TODO rename to gperftools when renames are supported
class GooglePerftools < Formula
homepage 'http://code.google.com/p/gperftools/'
url 'http://gperftools.googlecode.com/files/gperftools-2.1.tar.gz'
sha1 'b799b99d9f021988bbc931db1c21b2f94826d4f0'
fails_with :llvm do
build 2326
cause "Segfault during linking"
end
# Incorporated upstream, remove on next version update
def patches
DATA
end
def install
ENV.append_to_cflags '-D_XOPEN_SOURCE'
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
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 {
|