From 1bd3a98d798a303e963050022b45d412bb9364a3 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sat, 11 Mar 2017 09:24:06 -0800 Subject: [PATCH] ffmpeg@2.8: backport clock_gettime fix --- Formula/ffmpeg@2.8.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/ffmpeg@2.8.rb b/Formula/ffmpeg@2.8.rb index 1ec9acd3e4..c221bc4ac6 100644 --- a/Formula/ffmpeg@2.8.rb +++ b/Formula/ffmpeg@2.8.rb @@ -72,6 +72,12 @@ class FfmpegAT28 < Formula depends_on "dcadec" => :optional 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}", "--enable-shared", "--enable-pthreads",