aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2016-09-02 17:55:37 -0700
committerGitHub2016-09-02 17:55:37 -0700
commitd39eeac0d5041dbbc41f939ef2dbc02823c82fcd (patch)
tree59d316baabbfbb82daaea4ead19780cd542eac31 /Library
parent51bdd859ae49ba9c78a01d926eb39ba608bc55a9 (diff)
parent8f068fdbca362a48e4142be4500ccffe0f97392d (diff)
downloadbrew-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-xLibrary/Homebrew/shims/super/cc4
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?