diff options
| author | Adam Vandenberg | 2010-04-20 22:08:33 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-20 22:08:33 -0700 |
| commit | d29371e36f754b94a96593731c983ffffcfc10d7 (patch) | |
| tree | 4c86b32e6d8f91de4bead5412696506061fe89f1 /Library/Formula | |
| parent | 9906ce31fcb957357f630c565ca5e1ae09b8827b (diff) | |
| download | homebrew-d29371e36f754b94a96593731c983ffffcfc10d7.tar.bz2 | |
Update ffmpeg for 32-bit compiles under gcc 4.2
Fixes issue #207.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ffmpeg.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb index 24954e3e5..419e4fc91 100644 --- a/Library/Formula/ffmpeg.rb +++ b/Library/Formula/ffmpeg.rb @@ -24,6 +24,12 @@ class Ffmpeg <Formula configure_flags << "--enable-libfaad" if Formula.factory('faad2').installed? configure_flags << "--enable-libmp3lame" if Formula.factory('lame').installed? + # For 32-bit compilation under gcc 4.2, see: + # http://trac.macports.org/ticket/20938#comment:22 + if MACOS_VERSION >= 10.6 and not Hardware.is_64_bit? + ENV.append_to_cflags "-mdynamic-no-pic" + end + system "./configure", *configure_flags inreplace 'config.mak' do |s| |
