aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/binutils.rb29
1 files changed, 28 insertions, 1 deletions
diff --git a/Library/Formula/binutils.rb b/Library/Formula/binutils.rb
index b4f5a8f5e..2da27012a 100644
--- a/Library/Formula/binutils.rb
+++ b/Library/Formula/binutils.rb
@@ -6,6 +6,12 @@ class Binutils < Formula
mirror 'http://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.gz'
sha1 'c3fb8bab921678b3e40a14e648c89d24b1d6efec'
+ # Fix compilation with clang. Reported upstream:
+ # http://sourceware.org/bugzilla/show_bug.cgi?id=15728
+ def patches
+ DATA
+ end
+
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
@@ -16,8 +22,29 @@ class Binutils < Formula
"--disable-werror",
"--enable-interwork",
"--enable-multilib",
- "--enable-targets=x86_64-elf,arm-none-eabi,m32r"
+ "--enable-64-bit-bfd",
+ "--enable-targets=all"
system "make"
system "make install"
end
end
+
+__END__
+--- a/include/cgen/basic-ops.h 2009-10-23 18:17:08.000000000 -0600
++++ b/include/cgen/basic-ops.h 2013-07-10 14:21:44.000000000 -0600
+@@ -295,11 +295,11 @@
+ significant and word number 0 is the most significant word.
+ ??? May also wish an endian-dependent version. Later. */
+
+-QI SUBWORDSIQI (SI, int);
+-HI SUBWORDSIHI (SI, int);
+-QI SUBWORDDIQI (DI, int);
+-HI SUBWORDDIHI (DI, int);
+-SI SUBWORDDISI (DI, int);
++static QI SUBWORDSIQI (SI, int);
++static HI SUBWORDSIHI (SI, int);
++static QI SUBWORDDIQI (DI, int);
++static HI SUBWORDDIHI (DI, int);
++static SI SUBWORDDISI (DI, int);
+
+ #ifdef SEMOPS_DEFINE_INLINE