Skip to content

Commit

Permalink
jemalloc: apply upstream Sierra fixes
Browse files Browse the repository at this point in the history
Closes #4698.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
DomT4 committed Sep 10, 2016
1 parent 1065b3f commit e341545
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Formula/jemalloc.rb
Expand Up @@ -12,8 +12,24 @@ class Jemalloc < Formula
sha256 "fb154c600464d8fce9dd41b9494246721d02a87a528fcb097276708c9f7de72f" => :mavericks
end

# https://github.com/jemalloc/jemalloc/issues/420
# Should be in the next release, but please check.
if MacOS.version >= :sierra
patch do
url "https://github.com/jemalloc/jemalloc/commit/4abaee5d13.patch"
sha256 "05c754089098c4275b460b90d1f4b94e32a2c819496187e5378e460c9398a65f"
end

patch do
url "https://github.com/jemalloc/jemalloc/commit/19c9a3e828.patch"
sha256 "b736dab20d2688d4b21b4ba4755fd19b68145b2d9ae299a1ae154e8553d9261d"
end
end

def install
system "./configure", "--disable-debug", "--prefix=#{prefix}", "--with-jemalloc-prefix="
system "make"
system "make", "check"
system "make", "install"
end

Expand Down

0 comments on commit e341545

Please sign in to comment.