Don't adjust LDFLAGS if brew prefix is /usr/local

This keeps build lines more minimal so its just an aesthetic thing
This commit is contained in:
Max Howell 2009-05-23 16:38:28 +01:00
parent a41cf81fbc
commit 61cadf7b50

View File

@ -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