Skip to content

Instantly share code, notes, and snippets.

@indeyets
Created November 11, 2010 19:04
Show Gist options
  • Save indeyets/672998 to your computer and use it in GitHub Desktop.
Save indeyets/672998 to your computer and use it in GitHub Desktop.
mongrel2 formula patch for homebrew
diff --git a/Library/Formula/mongrel2.rb b/Library/Formula/mongrel2.rb
index 60e7e49..35ce213 100644
--- a/Library/Formula/mongrel2.rb
+++ b/Library/Formula/mongrel2.rb
@@ -9,6 +9,8 @@ class Mongrel2 <Formula
depends_on 'zeromq'
def install
+ ENV['OPTFLAGS'] = ENV.cflags + " " + ENV['CPPFLAGS']
+ ENV['OPTLIBS'] = ENV.ldflags
system "make all"
system "make install PREFIX=#{prefix}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment