diff options
| author | Tim D. Smith | 2016-09-02 17:55:37 -0700 |
|---|---|---|
| committer | GitHub | 2016-09-02 17:55:37 -0700 |
| commit | d39eeac0d5041dbbc41f939ef2dbc02823c82fcd (patch) | |
| tree | 59d316baabbfbb82daaea4ead19780cd542eac31 /Library | |
| parent | 51bdd859ae49ba9c78a01d926eb39ba608bc55a9 (diff) | |
| parent | 8f068fdbca362a48e4142be4500ccffe0f97392d (diff) | |
| download | brew-d39eeac0d5041dbbc41f939ef2dbc02823c82fcd.tar.bz2 | |
Merge pull request #845 from tdsmith/usr-local-sdkroot
Don't reject -L/usr/local/lib when SDKROOT is defined
Closes #844. Fixes Homebrew/homebrew-fuse#62.
Diffstat (limited to 'Library')
| -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? |
