aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/binutils.rb
blob: 2da27012a9b44f2240151656b2b1ca2fbfb6edfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require 'formula'

class Binutils < Formula
  homepage 'http://www.gnu.org/software/binutils/binutils.html'
  url 'http://ftpmirror.gnu.org/binutils/binutils-2.23.2.tar.gz'
  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",
                          "--program-prefix=g",
                          "--prefix=#{prefix}",
                          "--infodir=#{info}",
                          "--mandir=#{man}",
                          "--disable-werror",
                          "--enable-interwork",
                          "--enable-multilib",
                          "--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