gperftools 2.6
Closes #15298. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
a403900366
commit
95010e0622
1 changed files with 11 additions and 27 deletions
|
@ -1,19 +1,8 @@
|
|||
class Gperftools < Formula
|
||||
desc "Multi-threaded malloc() and performance analysis tools"
|
||||
homepage "https://github.com/gperftools/gperftools"
|
||||
revision 1
|
||||
head "https://github.com/gperftools/gperftools.git"
|
||||
|
||||
stable do
|
||||
url "https://github.com/gperftools/gperftools/releases/download/gperftools-2.5/gperftools-2.5.tar.gz"
|
||||
sha256 "6fa2748f1acdf44d750253e160cf6e2e72571329b42e563b455bde09e9e85173"
|
||||
|
||||
# Fix finding default zone on macOS Sierra (https://github.com/gperftools/gperftools/issues/827)
|
||||
patch do
|
||||
url "https://github.com/gperftools/gperftools/commit/acac6af26b0ef052b39f61a59507b23e9703bdfa.patch?full_index=1"
|
||||
sha256 "164b99183c9194706670bec032bb96d220ce27fc5257b322d994096516133376"
|
||||
end
|
||||
end
|
||||
url "https://github.com/gperftools/gperftools/releases/download/gperftools-2.6/gperftools-2.6.tar.gz"
|
||||
sha256 "87d556694bb1d2c16de34acb9a9db36f7b82b491762ee19e795ef2bef9394daf"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -22,27 +11,22 @@ class Gperftools < Formula
|
|||
sha256 "e6af4a9899529cf2aa1ab0c7c6a667cf1a1df9a207a51c0dbb64128d1e1f1d05" => :yosemite
|
||||
end
|
||||
|
||||
# Needed for stable due to the patch; otherwise, just head
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "libtool" => :build
|
||||
head do
|
||||
url "https://github.com/gperftools/gperftools.git"
|
||||
|
||||
# Prevents build failure on Xcode >= 7.3:
|
||||
# Undefined symbols for architecture x86_64:
|
||||
# "operator delete(void*, unsigned long)", referenced from:
|
||||
# ProcMapsIterator::~ProcMapsIterator() in libsysinfo.a(sysinfo.o)
|
||||
# Reported 17 April 2016: gperftools/gperftools#794
|
||||
patch do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/edb49c752c0c02eb9e47bd2ab9788d504fd5b495/gperftools/revert-sized-delete-aliases.patch"
|
||||
sha256 "49eb4f2ac52ad38723d3bf371e7d682644ef09ee7c1e2e2098e69b6c085153b6"
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "libtool" => :build
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.append_to_cflags "-D_XOPEN_SOURCE"
|
||||
|
||||
# Needed for stable due to the patch; otherwise, just head
|
||||
system "autoreconf", "-fiv"
|
||||
# Workaround for undefined symbol error for ___lsan_ignore_object
|
||||
# Reported 5 Jul 2017 https://github.com/gperftools/gperftools/issues/901
|
||||
ENV.append_to_cflags "-Wl,-U,___lsan_ignore_object"
|
||||
|
||||
system "autoreconf", "-fiv" if build.head?
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make"
|
||||
|
|
Loading…
Reference in a new issue