2023-05-11 08:14:18 +00:00
|
|
|
From d9f3624936fa3669363b4670e5dc196e47f0ea16 Mon Sep 17 00:00:00 2001
|
2020-04-13 19:22:29 +00:00
|
|
|
From: Christophe Giboudeaux <christophe@krop.fr>
|
|
|
|
|
Date: Mon, 13 Apr 2020 10:14:42 +0200
|
|
|
|
|
Subject: [PATCH] Fix linker errors on Linux.
|
|
|
|
|
|
|
|
|
|
OpenToonz uses dlopen in a couple places, so it needs to link 'dl'.
|
|
|
|
|
---
|
|
|
|
|
toonz/sources/tnzcore/CMakeLists.txt | 2 +-
|
|
|
|
|
toonz/sources/toonzqt/CMakeLists.txt | 2 +-
|
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/toonz/sources/tnzcore/CMakeLists.txt b/toonz/sources/tnzcore/CMakeLists.txt
|
2023-05-11 08:14:18 +00:00
|
|
|
index e1cdaa2..72a3d26 100644
|
2020-04-13 19:22:29 +00:00
|
|
|
--- a/toonz/sources/tnzcore/CMakeLists.txt
|
|
|
|
|
+++ b/toonz/sources/tnzcore/CMakeLists.txt
|
2023-05-11 08:14:18 +00:00
|
|
|
@@ -358,5 +358,5 @@ endif()
|
2020-04-13 19:22:29 +00:00
|
|
|
target_link_libraries(tnzcore
|
2021-04-12 10:13:14 +00:00
|
|
|
Qt5::Core Qt5::OpenGL Qt5::Network Qt5::Multimedia
|
2020-04-13 19:22:29 +00:00
|
|
|
${GL_LIB} ${GLUT_LIB} ${QT_LIB} ${Z_LIB} ${JPEG_LIB} ${LZ4_LIB}
|
|
|
|
|
- ${EXTRA_LIBS}
|
|
|
|
|
+ ${EXTRA_LIBS} ${CMAKE_DL_LIBS}
|
|
|
|
|
)
|
|
|
|
|
diff --git a/toonz/sources/toonzqt/CMakeLists.txt b/toonz/sources/toonzqt/CMakeLists.txt
|
2023-05-11 08:14:18 +00:00
|
|
|
index 0c44f51..de693f3 100644
|
2020-04-13 19:22:29 +00:00
|
|
|
--- a/toonz/sources/toonzqt/CMakeLists.txt
|
|
|
|
|
+++ b/toonz/sources/toonzqt/CMakeLists.txt
|
2023-05-11 08:14:18 +00:00
|
|
|
@@ -252,4 +252,4 @@ elseif(BUILD_ENV_UNIXLIKE)
|
2020-04-13 19:22:29 +00:00
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
-target_link_libraries(toonzqt Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::OpenGL Qt5::Svg ${EXTRA_LIBS} ${GL_LIB})
|
|
|
|
|
+target_link_libraries(toonzqt Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::OpenGL Qt5::Svg ${EXTRA_LIBS} ${GL_LIB} ${CMAKE_DL_LIBS})
|
|
|
|
|
--
|
2023-05-11 08:14:18 +00:00
|
|
|
2.40.1
|
2020-04-13 19:22:29 +00:00
|
|
|
|