From 4aa3467daa6b0b7ba04531421d77286a8b92e45e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Mon, 5 Oct 2015 19:25:15 +0200
Subject: [PATCH] avcodec: link basic Darwin frameworks

This solves linking issues with FFmpeg HEAD
---
 modules/codec/Makefile.am | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/Makefile.am b/modules/codec/Makefile.am
index 868bdcc0ae12..71a87c555bab 100644
--- a/modules/codec/Makefile.am
+++ b/modules/codec/Makefile.am
@@ -319,6 +319,9 @@ libavcodec_plugin_la_SOURCES += demux/avformat/mux.c
 endif
 libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
 endif
+if HAVE_DARWIN
+libavcodec_plugin_la_LDFLAGS += -Wl,-framework,Foundation -Wl,-framework,Security,-framework,CoreFoundation
+endif
 if HAVE_AVCODEC
 codec_LTLIBRARIES += libavcodec_plugin.la
 endif
-- 
GitLab