mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
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:
parent
a41cf81fbc
commit
61cadf7b50
@ -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
|
||||
unless $cellar.parent.to_s == '/usr/local'
|
||||
ENV['CPPFLAGS']="-I#{$cellar.parent}/include"
|
||||
ENV['LDFLAGS']="-L#{$cellar.parent}/lib"
|
||||
end
|
||||
|
||||
|
||||
def ohai title
|
||||
|
Loading…
x
Reference in New Issue
Block a user