void-packages/srcpkgs/csound/patches/0001-Allow-to-link-against-...

33 lines
979 B
Diff

From d122dd83cba94a9b8857564816ab48556b609180 Mon Sep 17 00:00:00 2001
From: John Zimmermann <johnz@posteo.net>
Date: Sun, 3 Feb 2019 03:04:05 +0100
Subject: [PATCH] Allow to link against libexecinfo on linux systems
Some C-libraries like the Musl libc don't provide execinfo themself so
it is required to use a third party library to use execinfo there.
---
CMakeLists.txt | 7 +++++++
1 file changed, 7 insertions(+)
diff --git CMakeLists.txt CMakeLists.txt
index c6cd95a02..2fb129d5f 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -1284,6 +1284,13 @@ if(LINUX)
list(APPEND libcsound_LIBS ${LIBRT_LIBRARY})
message(STATUS " ADDING LIBRT LIBRARY: ${LIBRT_LIBRARY}.")
endif()
+
+ find_library(LIBEXECINFO_LIBRARY execinfo)
+
+ if(LIBEXECINFO_LIBRARY)
+ list(APPEND libcsound_LIBS ${LIBEXECINFO_LIBRARY})
+ message(STATUS " ADDING LIBEXECINFO LIBRARY: ${LIBEXECINFO_LIBRARY}.")
+ endif()
endif()
if(APPLE AND NOT IOS)
--
2.20.1