Permalink
Browse files

htop: disable optimization with clang to prevent segfault when resizing

  • Loading branch information...
1 parent 1126939 commit 255acfb2a6269d1ada6e22b965606fef41361c30 @adamv adamv committed May 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 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 .'"

0 comments on commit 255acfb

Please sign in to comment.