aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV
diff options
context:
space:
mode:
authorTim D. Smith2016-08-17 22:55:16 -0700
committerTim D. Smith2016-08-17 23:02:44 -0700
commit9c7f24b84aea4ae1b465afa41445385ada4f2ffb (patch)
treeb36b51342951f425bf32afd96cedde6729c8644e /Library/Homebrew/extend/ENV
parent764390aaddda08e7020c30358e738bca9ed2e5d4 (diff)
downloadbrew-9c7f24b84aea4ae1b465afa41445385ada4f2ffb.tar.bz2
Add permit_weak_imports directive
Issue Homebrew/homebrew-core#3727 suggested we set -no_weak_imports for new versions of Xcode to ensure that e.g. building on 10.11 against the 10.12 SDK doesn't result in a situation where autotools thinks symbols exist that don't actually exist on the current platform. Further discussion in golang/go#16770 revealed that some packages require weak imports to build normally.
Diffstat (limited to 'Library/Homebrew/extend/ENV')
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index c253942ac..c3bd9830a 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -293,6 +293,8 @@ module SharedEnvExtension
def permit_arch_flags; end
+ def permit_weak_imports; end
+
private
def cc=(val)