diff options
Diffstat (limited to 'Library/Formula/ffmpeg.rb')
| -rw-r--r-- | Library/Formula/ffmpeg.rb | 13 |
1 files changed, 9 insertions, 4 deletions
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 |
