Skip to content

Commit

Permalink
gnutls: fix the build on 10.11 with Xcode 8 (#6041)
Browse files Browse the repository at this point in the history
gnutls uses some customized Autotools tests, so the general superenv
workaround in Homebrew/brew#970 is insufficient
  • Loading branch information
ilovezfs authored Oct 18, 2016
1 parent 4b1c40b commit af2c4dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Formula/gnutls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af2c4dd

Please sign in to comment.