summaryrefslogtreecommitdiff
path: root/libre/handbrake/0001-Fix-linking-issue-when-disabling-internal-libbluray.patch
blob: 09333b96fee17e37f778a9f8a422965ec22feed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 27812b1245d525604e9e3da09ae45134595146b9 Mon Sep 17 00:00:00 2001
From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Date: Wed, 13 Nov 2019 16:07:39 +0100
Subject: [PATCH 1/2] Fix linking issue when disabling internal libbluray

Without that fix we have:
  /usr/bin/ld: /home/gnutoo/work/projects/parabola/handbrake/build//libhb/libhandbrake.a(ports.o):
  undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
  /usr/bin/ld: /usr/lib/libdl.so.2: error adding symbols: DSO missing from
  command line

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 gtk/configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gtk/configure.ac b/gtk/configure.ac
index 92aabcbe8..82e8d88ce 100644
--- a/gtk/configure.ac
+++ b/gtk/configure.ac
@@ -232,6 +232,7 @@ case $host in
     HB_LIBS="$HB_LIBS -pthread"
     ;;
   *-*-linux*)
+    HB_LIBS="$HB_LIBS -ldl -lpthread"
     if test "x$use_qsv" = "xyes" ; then
         HB_LIBS="$HB_LIBS -lva -lva-drm"
     fi
-- 
2.24.0