aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gcc.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/Library/Formula/gcc.rb b/Library/Formula/gcc.rb
index 9c7c7c0b6..77614c26b 100644
--- a/Library/Formula/gcc.rb
+++ b/Library/Formula/gcc.rb
@@ -49,17 +49,18 @@ class Gcc < Formula
depends_on "isl"
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
- # The as that comes with Tiger isn't capable of dealing with the
- # PPC asm that comes in libitm
- depends_on "cctools" => :build if MacOS.version < :leopard
+ if MacOS.version < :leopard
+ # The as that comes with Tiger isn't capable of dealing with the
+ # PPC asm that comes in libitm
+ depends_on "cctools" => :build
+ # GCC 4.8.1 incorrectly determines that _Unwind_GetIPInfo is available on
+ # Tiger, resulting in a failed build
+ # Fixed upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58710
+ patch :DATA
+ end
fails_with :gcc_4_0
- # GCC 4.8.1 incorrectly determines that _Unwind_GetIPInfo is available on
- # Tiger, resulting in a failed build
- # Fixed upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58710
- def patches; DATA; end if MacOS.version < :leopard
-
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip