Recursively scan for keg-only deps before generating build ENV

Remove cairo dep from gtk formula as a consequence.
This commit is contained in:
Max Howell 2011-08-05 13:19:10 +01:00
parent 45ba18b4d5
commit b0c6970dec

View File

@ -40,7 +40,7 @@ at_exit do
end end
def install f def install f
f.deps.uniq.each do |dep| f.recursive_deps.uniq.each do |dep|
dep = Formula.factory dep dep = Formula.factory dep
if dep.keg_only? if dep.keg_only?
ENV.prepend 'LDFLAGS', "-L#{dep.lib}" ENV.prepend 'LDFLAGS', "-L#{dep.lib}"