gcc@5: patch for Xcode 9

This commit is contained in:
FX Coudert 2017-09-03 23:33:56 +02:00
parent 3d50f91228
commit e59fd0356f

View file

@ -60,6 +60,15 @@ class GccAT5 < Formula
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
patch :DATA
# Fix build with Xcode 9
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82091
if DevelopmentTools.clang_build_version >= 900
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/078797f1b9/gcc%405/xcode9.patch"
sha256 "e1546823630c516679371856338abcbab381efaf9bd99511ceedcce3cf7c0199"
end
end
def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"