Don't reject -L/usr/local/lib when SDKROOT is defined

/usr/local/lib is removed from the default linker search path when
SDKROOT is defined or sysroot is specified.

Homebrew sometimes sets SDKROOT without setting a sysroot as of 45e138f.
This commit is contained in:
Tim D. Smith 2016-08-31 22:38:18 -07:00
parent c39f0baa21
commit 8f068fdbca

View File

@ -279,7 +279,9 @@ class Cmd
end
def system_library_paths
%W[#{sysroot}/usr/lib /usr/local/lib]
paths = ["#{sysroot}/usr/lib"]
paths << "/usr/local/lib" unless sysroot || ENV["SDKROOT"]
paths
end
def configure?