aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorKlemens Nanni <klemens@posteo.de>2023-03-02 16:18:24 +0400
committerfiaxh <fiaxh@users.noreply.github.com>2023-03-24 19:36:32 +0100
commitb75b6062abc07b25d0dcd6717e168aa85be7cf4e (patch)
tree168a14900285826474368bb8d93cf8e908acd48c /main
parent32e535a79cc23c56f6ef602ef6271b14e3dc4ac4 (diff)
downloaddino-b75b6062abc07b25d0dcd6717e168aa85be7cf4e.tar.gz
dino-b75b6062abc07b25d0dcd6717e168aa85be7cf4e.zip
Always export symbols to fix startup on BSDs
``` $ dino (dino:38515): Gtk-ERROR **: 15:38:38.538: failed to add UI from resource /im/dino/Dino/unified_main_content.ui: .:26:1 Invalid object type 'DinoUiConversationSelector' Trace/BPT trap (core dumped) ``` This works on Linux because CMake itself links with `-rdynamic` by default as per its `Modules/Platform/Linux-*.cmake`. OpenBSD carries this as local patch, FreeBSD links with `--export-dynamics`. Just linking with `-rdynamic` also fixes it on OpenBSD, as expected. https://cmake.org/cmake/help/latest/prop_tgt/ENABLE_EXPORTS.html Fix #438.
Diffstat (limited to 'main')
-rw-r--r--main/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index 9ca7ce81..1a66597c 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -231,6 +231,7 @@ add_executable(dino ${MAIN_VALA_C} ${MAIN_GRESOURCES_TARGET})
add_dependencies(dino ${GETTEXT_PACKAGE}-translations)
target_include_directories(dino PRIVATE src)
target_link_libraries(dino libdino ${MAIN_PACKAGES})
+set_target_properties(dino PROPERTIES ENABLE_EXPORTS TRUE)
if(WIN32)
target_link_libraries(dino -mwindows)