aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorilovezfs2016-11-02 01:21:15 -0700
committerilovezfs2016-11-02 01:21:15 -0700
commit2c43649ffc9eeea33b1f5533983c26a3bbb78f83 (patch)
tree8b87f3795b7c54bb8dfe57316e11ad72b23121cc /Library
parentf14a3a17decdcfd26fc9f2dc0958ee642241ea5a (diff)
downloadbrew-2c43649ffc9eeea33b1f5533983c26a3bbb78f83.tar.bz2
superenv: prune -Wl,-z,defs when refurbishing
`-Wl,-z,defs` should be pruned out entirely since `-z defs` is not understood by macOS's `ld`, and the analogue `-undefined error` is already the default.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/shims/super/cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc
index 1da8ff173..db6361f04 100755
--- a/Library/Homebrew/shims/super/cc
+++ b/Library/Homebrew/shims/super/cc
@@ -169,6 +169,8 @@ class Cmd
when "-Wno-deprecated-register"
# older gccs don't support these flags
args << arg unless tool =~ /^g..-4.[02]/
+ when /^-Wl,-z,defs/
+ # -Wl,-undefined,error is already the default
when /^-W[alp],/, /^-Wno-/
args << arg
when /^-W.*/