ffmpeg@2.8: backport clock_gettime fix

This commit is contained in:
ilovezfs 2017-03-11 09:24:06 -08:00 committed by Mike McQuaid
parent 3619c745a0
commit 1bd3a98d79

View file

@ -72,6 +72,12 @@ class FfmpegAT28 < Formula
depends_on "dcadec" => :optional depends_on "dcadec" => :optional
def install def install
# Fixes "dyld: lazy symbol binding failed: Symbol not found: _clock_gettime"
if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
inreplace %w[libavdevice/v4l2.c libavutil/time.c], "HAVE_CLOCK_GETTIME",
"UNDEFINED_GIBBERISH"
end
args = ["--prefix=#{prefix}", args = ["--prefix=#{prefix}",
"--enable-shared", "--enable-shared",
"--enable-pthreads", "--enable-pthreads",