diff options
| author | ilovezfs | 2016-09-15 04:35:22 -0700 |
|---|---|---|
| committer | GitHub | 2016-09-15 04:35:22 -0700 |
| commit | a148aa3a41d34a07caab5d17daa26b4749ff3c50 (patch) | |
| tree | 39d94a11f659d2668010f8e90a41a0912fa5e89c /Library/Homebrew | |
| parent | fcb9659052eb0d626c2bb86898d5bf54c56b5a5a (diff) | |
| parent | 1d7aa1fe0b430a4415cb976a2b2c3041f4269b55 (diff) | |
| download | brew-a148aa3a41d34a07caab5d17daa26b4749ff3c50.tar.bz2 | |
Merge pull request #970 from ilovezfs/ac_cv_xcode8
superenv: help Autotools with 10.12 SDK on 10.11
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/extend/os/mac/extend/ENV/super.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/mac/extend/ENV/super.rb b/Library/Homebrew/extend/os/mac/extend/ENV/super.rb index ef2855de1..84b662299 100644 --- a/Library/Homebrew/extend/os/mac/extend/ENV/super.rb +++ b/Library/Homebrew/extend/os/mac/extend/ENV/super.rb @@ -94,6 +94,15 @@ module Superenv self["SDKROOT"] = MacOS.sdk_path end + # Filter out symbols known not to be defined on 10.11 since GNU Autotools + # can't reliably figure this out with Xcode 8 on its own yet. + if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0" + %w[basename_r clock_getres clock_gettime clock_settime dirname_r + getentropy mkostemp mkostemps].each do |s| + ENV["ac_cv_func_#{s}"] = "no" + end + end + # On 10.9, the tools in /usr/bin proxy to the active developer directory. # This means we can use them for any combination of CLT and Xcode. self["HOMEBREW_PREFER_CLT_PROXIES"] = "1" if MacOS.version >= "10.9" |
