diff options
| author | Misty De Meo | 2013-02-01 10:02:12 -0600 |
|---|---|---|
| committer | Misty De Meo | 2013-02-01 11:36:41 -0600 |
| commit | 9637eb97371ec0ca6fa8552e1a096174280f4fcf (patch) | |
| tree | 43994b7af2fbaf7acaa006f7fed6c270d3a547ca /Library/Formula/ipmitool.rb | |
| parent | 7c30ed1f1f431b53e373163fe81a60706b540d4c (diff) | |
| download | homebrew-9637eb97371ec0ca6fa8552e1a096174280f4fcf.tar.bz2 | |
ipmitool: remove gcc 4.4+ flags
These flags aren't supported by gcc-4.2 or llvm-gcc. Will report
upstream later.
Diffstat (limited to 'Library/Formula/ipmitool.rb')
| -rw-r--r-- | Library/Formula/ipmitool.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/ipmitool.rb b/Library/Formula/ipmitool.rb index dac0d39d9..b18c509bf 100644 --- a/Library/Formula/ipmitool.rb +++ b/Library/Formula/ipmitool.rb @@ -5,6 +5,10 @@ class Ipmitool < Formula url 'http://downloads.sourceforge.net/project/ipmitool/ipmitool/1.8.12/ipmitool-1.8.12.tar.bz2' sha1 'b895564db1196e891b60d2ab4f6d0bf5499c3453' + # Project uses -Wno-unused-result and -Wno-packed-bitfield-compat, which were + # introduced in gcc-4.4 and don't work on Apple gcc or llvm-gcc + def patches; DATA; end + def install system "./configure", "--disable-debug", "--disable-dependency-tracking", @@ -13,3 +17,18 @@ class Ipmitool < Formula system "make install" end end + +__END__ +diff --git a/configure b/configure +index bdf6dae..f5b8e8d 100755 +--- a/configure ++++ b/configure +@@ -5030,7 +5030,7 @@ fi + done + + +-CFLAGS="$CFLAGS -fno-strict-aliasing -Wreturn-type -Wno-unused-result -Wno-packed-bitfield-compat" ++CFLAGS="$CFLAGS -fno-strict-aliasing -Wreturn-type" + + case `pwd` in + *\ * | *\ *) |
