From 235581ae291d5a024b3f6017e246ecdcfb48e604 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Tue, 22 Nov 2011 21:30:01 -0800 Subject: 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. --- Library/Formula/sdl.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Library') 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. -- cgit v1.2.3