Skip to content
Snippets Groups Projects
Commit d22ad92a authored by Jack Nagel's avatar Jack Nagel
Browse files

Remove special behavior of autotools symbol deps

Closes Homebrew/homebrew#28094.
parent c13311ca
No related branches found
No related tags found
No related merge requests found
......@@ -136,8 +136,6 @@ class DependencyCollector
end
def autotools_dep(spec, tags)
return if MacOS::Xcode.provides_autotools?
if spec == :libltdl
spec = :libtool
tags << :run
......
......@@ -86,25 +86,6 @@ class DependencyCollectorTests < Test::Unit::TestCase
assert dep.optional?
end
def test_libltdl_not_build_dep
MacOS::Xcode.stubs(:provides_autotools?).returns(false)
dep = @d.build(:libltdl)
assert_equal Dependency.new("libtool"), dep
assert !dep.build?
end
def test_autotools_dep_no_system_autotools
MacOS::Xcode.stubs(:provides_autotools?).returns(false)
dep = @d.build(:libtool)
assert_equal Dependency.new("libtool"), dep
assert dep.build?
end
def test_autotools_dep_system_autotools
MacOS::Xcode.stubs(:provides_autotools?).returns(true)
assert_nil @d.build(:libtool)
end
def test_ld64_dep_pre_leopard
MacOS.stubs(:version).returns(MacOS::Version.new("10.4"))
assert_equal LD64Dependency.new, @d.build(:ld64)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment