diff options
| author | Andrew Neitsch | 2013-07-10 14:41:47 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-12 09:54:19 -0700 |
| commit | 196afb43172ac9cc3a3ab452a547231c60fef2e3 (patch) | |
| tree | 305eb8fbd0e7d3bde04324a1b3eb9fa12480a9dd /Library | |
| parent | 189c273af96fd513aaa3c146f9630c6fda2fe037 (diff) | |
| download | homebrew-196afb43172ac9cc3a3ab452a547231c60fef2e3.tar.bz2 | |
binutils: build all targets
Closes #21132.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/binutils.rb | 29 |
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 |
