From 9a235bebb6cbee4017a39b997e49bb6fe8a3ee7c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 2 Feb 2020 14:26:58 +0200 Subject: [PATCH] - fixed Linux linking issue libraries/zmusic/libzmusic.a(i_module.cpp.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5' --- libraries/zmusic/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/zmusic/CMakeLists.txt b/libraries/zmusic/CMakeLists.txt index 24c9498ab..cd87cec2d 100644 --- a/libraries/zmusic/CMakeLists.txt +++ b/libraries/zmusic/CMakeLists.txt @@ -88,7 +88,7 @@ add_library( zmusic STATIC zmusic/zmusic.cpp ${PLAT_SOURCES} ) -target_link_libraries( zmusic dumb gme timidityplus) +target_link_libraries( zmusic dumb gme timidityplus "${CMAKE_DL_LIBS}" ) if( NOT DYN_SNDFILE AND SNDFILE_FOUND ) include_directories( "${SNDFILE_INCLUDE_DIRS}" )