aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-08-16 13:48:08 +0100
committerMike McQuaid2016-08-16 15:26:28 +0100
commit53d1000739bc29913ab956cff2748428b66f969d (patch)
tree40334ff41e2b255c80e6e128bd61cc64ec34fd3f /Library
parentb33fe79478992da827317111370ab15d280e72c5 (diff)
downloadbrew-53d1000739bc29913ab956cff2748428b66f969d.tar.bz2
ENV/std: add LDFLAGS if disabling weak imports.
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