From 0b5e0a66dc463eb3bc88a7ebfba47a5ab43bbfde Mon Sep 17 00:00:00 2001 From: João Date: Sun, 14 Aug 2011 23:38:01 +0100 Subject: ffmpeg: always use clang to compile on Lion Signed-off-by: Adam Vandenberg --- Library/Formula/ffmpeg.rb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Library/Formula/ffmpeg.rb') diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb index bd43604f8..f8563d16f 100644 --- a/Library/Formula/ffmpeg.rb +++ b/Library/Formula/ffmpeg.rb @@ -32,10 +32,15 @@ class Ffmpeg < Formula args << "--enable-libvpx" if Formula.factory('libvpx').installed? args << "--enable-libxvid" if Formula.factory('xvid').installed? - # Enable alternate compilers - args << "--cc=clang" if ENV.use_clang? - args << "--cc=llvm-gcc" if ENV.use_llvm? - args << "--cc=gcc" if ENV.use_gcc? + # Force use of clang on Lion + # See: https://avcodec.org/trac/ffmpeg/ticket/353 + if MacOS.lion? + args << "--cc=clang" + else + args << "--cc=clang" if ENV.use_clang? + args << "--cc=llvm-gcc" if ENV.use_llvm? + args << "--cc=gcc" if ENV.use_gcc? + end # For 32-bit compilation under gcc 4.2, see: # http://trac.macports.org/ticket/20938#comment:22 -- cgit v1.2.3