Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

htop: disable optimization with clang to prevent segfault when resizing

  • Loading branch information...
commit 255acfb2a6269d1ada6e22b965606fef41361c30 1 parent 1126939
@adamv adamv authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  Library/Formula/htop-osx.rb
View
3  Library/Formula/htop-osx.rb
@@ -8,6 +8,9 @@ class HtopOsx < Formula
depends_on "automake" => :build if MacOS.xcode_version.to_f >= 4.3
def install
+ # Otherwise htop will segfault when resizing the terminal
+ ENV.no_optimization if ENV.compiler == :clang
+
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install", "DEFAULT_INCLUDES='-iquote .'"
Please sign in to comment.
Something went wrong with that request. Please try again.