From 61cadf7b50cb58884a04a6f1e467bfa23693037c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 23 May 2009 16:38:28 +0100 Subject: [PATCH] Don't adjust LDFLAGS if brew prefix is /usr/local This keeps build lines more minimal so its just an aesthetic thing --- Cellar/homebrew/brewkit.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb index 788fc1a593..30dabeb22f 100644 --- a/Cellar/homebrew/brewkit.rb +++ b/Cellar/homebrew/brewkit.rb @@ -18,9 +18,10 @@ ENV['CC']='gcc-4.2' ENV['CXX']='g++-4.2' ENV['MAKEFLAGS']='-j2' -#TODO don't add the prefixes if we're in /usr or /usr/local -ENV['CPPFLAGS']="-I#{$cellar.parent}/include" -ENV['LDFLAGS']="-L#{$cellar.parent}/lib" +unless $cellar.parent.to_s == '/usr/local' + ENV['CPPFLAGS']="-I#{$cellar.parent}/include" + ENV['LDFLAGS']="-L#{$cellar.parent}/lib" +end def ohai title