aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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.