aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-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?