Skip to content

Commit 05bb353

Browse files
authored
Merge pull request #3182 from ilovezfs/ac_cv_xcode9
superenv: help Autotools with 10.13 SDK on 10.12
2 parents 5d888c0 + 733d485 commit 05bb353

File tree

1 file changed

+6
-3
lines changed
  • Library/Homebrew/extend/os/mac/extend/ENV

1 file changed

+6
-3
lines changed

Library/Homebrew/extend/os/mac/extend/ENV/super.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,12 @@ def setup_build_environment(formula = nil)
9696
self["SDKROOT"] = MacOS.sdk_path
9797
end
9898

99-
# Filter out symbols known not to be defined on 10.11 since GNU Autotools
100-
# can't reliably figure this out with Xcode 8 on its own yet.
101-
if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
99+
# Filter out symbols known not to be defined since GNU Autotools can't
100+
# reliably figure this out with Xcode 8 and above.
101+
if MacOS.version == "10.12" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "9.0"
102+
ENV["ac_cv_func_futimens"] = "no"
103+
ENV["ac_cv_func_utimensat"] = "no"
104+
elsif MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
102105
%w[basename_r clock_getres clock_gettime clock_settime dirname_r
103106
getentropy mkostemp mkostemps timingsafe_bcmp].each do |s|
104107
ENV["ac_cv_func_#{s}"] = "no"

0 commit comments

Comments
 (0)