diff options
| author | Tim D. Smith | 2016-08-31 22:38:18 -0700 |
|---|---|---|
| committer | Tim D. Smith | 2016-08-31 22:38:18 -0700 |
| commit | 8f068fdbca362a48e4142be4500ccffe0f97392d (patch) | |
| tree | 6768c19c18f5c2371f5446d878b5d8e02ba2a85d | |
| parent | c39f0baa2169c2c65fd6aca2f33fac6e31899855 (diff) | |
| download | brew-8f068fdbca362a48e4142be4500ccffe0f97392d.tar.bz2 | |
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.
| -rwxr-xr-x | Library/Homebrew/shims/super/cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc index 10b39bde2..ea602f1f9 100755 --- a/Library/Homebrew/shims/super/cc +++ b/Library/Homebrew/shims/super/cc @@ -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? |
