aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/os/mac/extend/ENV/std.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/mac/extend/ENV/std.rb b/Library/Homebrew/extend/os/mac/extend/ENV/std.rb
index 817b4a0ff..d9cabc50e 100644
--- a/Library/Homebrew/extend/os/mac/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/os/mac/extend/ENV/std.rb
@@ -28,6 +28,11 @@ module Stdenv
# depend on it already being installed to build itself.
ld64 if Formula["ld64"].installed?
end
+
+ # Xcode 8 should be told to fail to link against weak links
+ # Issue from Apple engineer:
+ # https://github.com/Homebrew/homebrew-core/issues/3727
+ append "LDFLAGS", "-Wl,-no_weak_imports" if no_weak_imports?
end
def homebrew_extra_pkg_config_paths