gnutls: fix the build on 10.11 with Xcode 8 (#6041)

gnutls uses some customized Autotools tests, so the general superenv
workaround in https://github.com/Homebrew/brew/pull/970 is insufficient
This commit is contained in:
ilovezfs 2016-10-18 00:54:56 -07:00 committed by GitHub
parent 4b1c40b373
commit af2c4dd563

View file

@ -27,6 +27,12 @@ class Gnutls < Formula
end
def install
# Fix "dyld: lazy symbol binding failed: Symbol not found: _getentropy"
# Reported 18 Oct 2016 https://gitlab.com/gnutls/gnutls/issues/142
if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
inreplace "configure", "getentropy(0, 0);", "undefinedgibberish(0, 0);"
end
args = %W[
--disable-dependency-tracking
--disable-silent-rules