diff options
| author | Thomas Goyne | 2012-05-23 14:26:25 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-07 20:58:49 -0700 |
| commit | 7182cd7ab02785f81134db90caa6fe940a12d2fd (patch) | |
| tree | f8444a24be5f626dafa0fa8bceccfd69576e7a8e /Library/Formula | |
| parent | 1dba8b4d492172a8c948c1922452dcf03e633502 (diff) | |
| download | homebrew-7182cd7ab02785f81134db90caa6fe940a12d2fd.tar.bz2 | |
libagg: Fix compilation errors
Remove AM_C_PROTOTYPES from configure.in, which was dropped in automake
1.12 as pre-ANSI C compilers are no longer worth caring about.
Add fails_with clang. AGG tries to return a const reference as a
non-const reference, which is allowed by gcc and llvm but not clang 3.1.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libagg.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/libagg.rb b/Library/Formula/libagg.rb index 0bcfdf614..a3e1eb1d3 100644 --- a/Library/Formula/libagg.rb +++ b/Library/Formula/libagg.rb @@ -9,9 +9,21 @@ class Libagg < Formula depends_on 'pkg-config' => :build depends_on 'sdl' + fails_with :clang do + build 318 + cause <<-EOS.undent + AGG tries to return a const reference as a non-const reference, which is + rejected by clang 3.1 but accepted by gcc + EOS + end + def install ENV.x11 # For freetype + # AM_C_PROTOTYPES was removed in automake 1.12, as it's only needed for + # pre-ANSI compilers + inreplace 'configure.in', 'AM_C_PROTOTYPES', '' + # No configure script. We need to run autoreconf, and aclocal and automake # need some direction. ENV['ACLOCAL'] = "aclocal -I#{HOMEBREW_PREFIX}/share/aclocal" # To find SDL m4 files |
