From f53a93dd925cf939f027aaeb4f041deeb6aa1d1c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 30 Aug 2012 19:34:38 -0400 Subject: [PATCH] Fixes Homebrew/homebrew#14571; clisp superenv issue --- Formula/clisp.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Formula/clisp.rb b/Formula/clisp.rb index 13dafe69b93..b106fb2a3e5 100644 --- a/Formula/clisp.rb +++ b/Formula/clisp.rb @@ -36,10 +36,7 @@ class Clisp < Formula # Multiple -O options will be in the generated Makefile, # make Homebrew's the last such option so it's effective. inreplace "Makefile" do |s| - cf = s.get_make_var("CFLAGS") - cf.gsub! ENV['CFLAGS'], '' - cf += ' '+ENV['CFLAGS'] - s.change_make_var! 'CFLAGS', cf + s.change_make_var! 'CFLAGS', "#{s.get_make_var('CFLAGS')} #{ENV['CFLAGS']}" end # The ulimit must be set, otherwise `make` will fail and tell you to do so