From 1d6be444df0a8b29bb393fdbecc00c8762512089 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 23 Jan 2026 20:46:26 +0900 Subject: Split kvirc executable into a shared library (libkvirc) and a stub executable (kvirc). Autotool builds kvirc with '-export-dynamic', which exports all global symbols from the main executable to the dynamic symbol table. This allows 'modules' to access those symbols and build successfully. CMake build kvirc without '-export-dynamic' and with hidden symbol visibitily by default, resulting in FTBFS when the build process reaches the 'modules' part. This is caused by the modules referring to symbols define in code under the 'src/kvirc' folder Splitting 'kvirc' into an additional 'libkvirc' shared library plus a simple executable stub that creates the application and run it, allows modules to be linked against the library part and build successfully also with cmake. Signed-off-by: Michele Calgaro --- src/modules/objects/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/objects/Makefile.am') diff --git a/src/modules/objects/Makefile.am b/src/modules/objects/Makefile.am index c4574582..a5a81aa6 100644 --- a/src/modules/objects/Makefile.am +++ b/src/modules/objects/Makefile.am @@ -53,7 +53,7 @@ libkviobjects_la_SOURCES = libkviobjects.cpp \ class_hbox.cpp -libkviobjects_la_LIBADD = $(SS_LIBLINK) ../../kvilib/build/libkvilib.la +libkviobjects_la_LIBADD = $(SS_LIBLINK) ../../kvirc/build/libkvirc.la noinst_HEADERS= class_button.h \ class_buttongroup.h \ -- cgit v1.2.3