1From 0c288853630b7b4e004774c39945d4a804afcfa8 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Fri, 6 Aug 2021 09:17:20 +0200
4Subject: [PATCH] configure: add extralibs to extralibs_xxx
5
6Add extralibs to extralibs_xxx (e.g. extralibs_avformat) to allow
7applications such as motion to retrieve ffmpeg dependencies such as
8-latomic through pkg-config
9
10Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
11[Upstream status: not upstreamable]
12---
13 configure | 18 +++++++++---------
14 1 file changed, 9 insertions(+), 9 deletions(-)
15
16diff --git a/configure b/configure
17index 0bb3a7cf2b..3bda99e415 100755
18--- a/configure
19+++ b/configure
20@@ -7602,15 +7602,15 @@ rpath=$(enabled rpath && echo "-Wl,-rpath,\${libdir}")
21 source_path=${source_path}
22 LIBPREF=${LIBPREF}
23 LIBSUF=${LIBSUF}
24-extralibs_avutil="$avutil_extralibs"
25-extralibs_avcodec="$avcodec_extralibs"
26-extralibs_avformat="$avformat_extralibs"
27-extralibs_avdevice="$avdevice_extralibs"
28-extralibs_avfilter="$avfilter_extralibs"
29-extralibs_avresample="$avresample_extralibs"
30-extralibs_postproc="$postproc_extralibs"
31-extralibs_swscale="$swscale_extralibs"
32-extralibs_swresample="$swresample_extralibs"
33+extralibs_avutil="$avutil_extralibs $extralibs"
34+extralibs_avcodec="$avcodec_extralibs $extralibs"
35+extralibs_avformat="$avformat_extralibs $extralibs"
36+extralibs_avdevice="$avdevice_extralibs $extralibs"
37+extralibs_avfilter="$avfilter_extralibs $extralibs"
38+extralibs_avresample="$avresample_extralibs $extralibs"
39+extralibs_postproc="$postproc_extralibs $extralibs"
40+extralibs_swscale="$swscale_extralibs $extralibs"
41+extralibs_swresample="$swresample_extralibs $extralibs"
42 EOF
43
44 for lib in $LIBRARY_LIST; do
45--
462.30.2
47
48