From 2c43649ffc9eeea33b1f5533983c26a3bbb78f83 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Wed, 2 Nov 2016 01:21:15 -0700 Subject: 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. --- Library/Homebrew/shims/super/cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library') 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.*/ -- cgit v1.2.3