2015-08-03 13:09:07 +01:00
|
|
|
require "dependency"
|
2013-04-13 21:11:14 -05:00
|
|
|
|
|
|
|
# This special dependency ensures that the Tigerbrew ld64
|
|
|
|
# formula is used as gcc's ld in place of the old version
|
|
|
|
# that comes with the OS.
|
|
|
|
class LD64Dependency < Dependency
|
2015-08-03 13:09:07 +01:00
|
|
|
def initialize(name = "ld64", tags = [:build], env_proc = nil)
|
2013-04-13 21:11:14 -05:00
|
|
|
super
|
2014-03-23 15:32:11 -07:00
|
|
|
@env_proc = proc { ENV.ld64 }
|
2013-04-13 21:11:14 -05:00
|
|
|
end
|
|
|
|
end
|