diff options
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index cdf69e5f3..6c1b4a0b7 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -120,12 +120,16 @@ class Cmd args << "-I#{path}" if iset.add?(path.cleanpath) when /^-L(.+)/ path = $1.chuzzle || whittler.next - case path.cleanpath + doit = case path.cleanpath + when %r{^#$brewfix} + # maybe homebrew is installed to /sw or /opt/brew + true when %r{^/opt}, %r{^/sw}, %r{/usr/X11} - # NOOP + false else - args << "-L#{path}" if lset.add?(path.cleanpath) + true end + args << "-L#{path}" if doit and lset.add?(path.cleanpath) else args << arg end |
