diff options
| author | ilovezfs | 2016-11-02 01:21:15 -0700 |
|---|---|---|
| committer | ilovezfs | 2016-11-02 01:21:15 -0700 |
| commit | 2c43649ffc9eeea33b1f5533983c26a3bbb78f83 (patch) | |
| tree | 8b87f3795b7c54bb8dfe57316e11ad72b23121cc /Library/Homebrew | |
| parent | f14a3a17decdcfd26fc9f2dc0958ee642241ea5a (diff) | |
| download | brew-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/Homebrew')
| -rwxr-xr-x | Library/Homebrew/shims/super/cc | 2 |
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.*/ |
