From 560918356738ee71aa7e7110d0e8aa6c8b3dbe4f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 16 Aug 2016 13:48:21 +0100 Subject: superenv: add LDFLAGS if disabling weak imports. --- Library/Homebrew/extend/os/mac/extend/ENV/super.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/extend') diff --git a/Library/Homebrew/extend/os/mac/extend/ENV/super.rb b/Library/Homebrew/extend/os/mac/extend/ENV/super.rb index 1976f5312..e482020e8 100644 --- a/Library/Homebrew/extend/os/mac/extend/ENV/super.rb +++ b/Library/Homebrew/extend/os/mac/extend/ENV/super.rb @@ -81,6 +81,10 @@ module Superenv s << "s" if MacOS.version >= :mountain_lion # Fix issue with >= 10.8 apr-1-config having broken paths s << "a" if MacOS.version >= :mountain_lion + # Xcode 8 should be told to fail to link against weak links + # Issue from Apple engineer: + # https://github.com/Homebrew/homebrew-core/issues/3727 + s << "w" if no_weak_imports? s end -- cgit v1.2.3