gnu-smalltalk: fix the build on 10.11 with Xcode 8

Closes #5016.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
master
ilovezfs 2016-09-20 01:41:06 -07:00
parent 5a5b672682
commit 7ec7ae01ea
1 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@ class GnuSmalltalk < Formula
url "https://ftpmirror.gnu.org/smalltalk/smalltalk-3.2.5.tar.xz"
mirror "https://ftp.gnu.org/gnu/smalltalk/smalltalk-3.2.5.tar.xz"
sha256 "819a15f7ba8a1b55f5f60b9c9a58badd6f6153b3f987b70e7b167e7755d65acc"
revision 3
revision 4
head "https://github.com/bonzini/smalltalk.git"
@ -48,6 +48,11 @@ class GnuSmalltalk < Formula
def install
ENV.m32 unless MacOS.prefer_64_bit?
# Fix build failure "Symbol not found: _clock_gettime"
if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
ENV["ac_cv_search_clock_gettime"] = "no"
end
args = %W[
--disable-debug
--disable-dependency-tracking