Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

libcaca: fix build with clang

Fixes #9727.
Closes #10078.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit e0b27b21aea825a5318de1d84c5eafa9a2391e3d 1 parent 4a759bc
@jodal jodal authored jacknagel committed
Showing with 18 additions and 0 deletions.
  1. +18 −0 Library/Formula/libcaca.rb
View
18 Library/Formula/libcaca.rb
@@ -11,6 +11,11 @@ class Libcaca < Formula
fails_with_llvm "unsupported inline asm: input constraint with a matching output constraint of incompatible type!"
+ def patches
+ # Make libcaca build with clang; see http://caca.zoy.org/ticket/90
+ { :p0 => DATA }
+ end
+
def install
# Some people can't compile when Java is enabled. See:
# https://github.com/mxcl/homebrew/issues/issue/2049
@@ -31,3 +36,16 @@ def install
system "make install"
end
end
+
+__END__
+--- caca/caca.h.orig 2011-07-05 00:09:51.000000000 -0700
++++ caca/caca.h 2011-07-05 00:10:10.000000000 -0700
+@@ -645,7 +645,7 @@ typedef struct cucul_buffer cucul_buffer
+ # define CACA_DEPRECATED
+ # endif
+
+-# if defined __GNUC__ && __GNUC__ > 3
++# if !defined __APPLE__ && defined __GNUC__ && __GNUC__ > 3
+ # define CACA_ALIAS(x) __attribute__ ((weak, alias(#x)))
+ # else
+ # define CACA_ALIAS(x)
Please sign in to comment.
Something went wrong with that request. Please try again.