aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-11-22 21:30:01 -0800
committerCharlie Sharpsteen2011-11-23 09:16:00 -0800
commit235581ae291d5a024b3f6017e246ecdcfb48e604 (patch)
tree6e70f425dda2bae84e022da90b79b0c871a4b571 /Library/Formula
parentf03e4233c88dd42e70a8e90cf1c3d70c8af162ca (diff)
downloadhomebrew-235581ae291d5a024b3f6017e246ecdcfb48e604.tar.bz2
SDL: Don't compile assembly if using LLVM or Clang
The LLVM compilers can't compile the assembly code packaged with SDL. Fixes #8750. Closes #8730. Closes #7798.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sdl.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb
index 84bd8c1d4..151f58d1f 100644
--- a/Library/Formula/sdl.rb
+++ b/Library/Formula/sdl.rb
@@ -21,7 +21,12 @@ class Sdl < Formula
# Sdl assumes X11 is present on UNIX
ENV.x11
system "./autogen.sh" if ARGV.build_head?
- system "./configure", "--prefix=#{prefix}", "--disable-nasm"
+
+ args = %W[--prefix=#{prefix} --disable-nasm]
+ # On Lion, LLVM-GCC chokes on the assembly code packaged with SDL.
+ args << '--disable-assembly' if ENV.compiler == :llvm and MacOS.lion?
+
+ system './configure', *args
system "make install"
# Copy source files needed for Ojective-C support.