summaryrefslogtreecommitdiff
path: root/media-sound/cantata/files/cantata-2.3.3-solidlite-static.patch
blob: 891917eebcb1990807b779e6fc3c192d9be39b05 (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
From aa35362aa2835e9e2903f5f785f10402a6abd3a1 Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
Date: Sun, 17 Feb 2019 16:58:48 +0100
Subject: [PATCH] Fix solid-lite static linking

If BUILD_SHARED_LIBS is part of standard system cmake args:

  cantata: error while loading shared libraries: libsolidlite.so:
  cannot open shared object file: No such file or directory
---
 3rdparty/solid-lite/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3rdparty/solid-lite/CMakeLists.txt b/3rdparty/solid-lite/CMakeLists.txt
index 4ae51aab..86e37189 100644
--- a/3rdparty/solid-lite/CMakeLists.txt
+++ b/3rdparty/solid-lite/CMakeLists.txt
@@ -202,7 +202,7 @@ if(APPLE)
    set(solidlite_OPTIONAL_LIBS ${IOKIT_LIBRARY})
 endif()
 
-add_library(solidlite ${solidlite_LIB_SRCS})
+add_library(solidlite STATIC ${solidlite_LIB_SRCS})
 
 if ( UDEV_FOUND )
    set(solidlite_OPTIONAL_LIBS ${solidlite_OPTIONAL_LIBS} ${UDEV_LIBS})
-- 
2.20.1