From af2c4dd563d897e61584622944d711e1dc466b40 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 18 Oct 2016 00:54:56 -0700 Subject: [PATCH] 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 --- Formula/gnutls.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/gnutls.rb b/Formula/gnutls.rb index e53b2c2d60..004657e6e0 100644 --- a/Formula/gnutls.rb +++ b/Formula/gnutls.rb @@ -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