summaryrefslogtreecommitdiffstats
path: root/src/modules/avatar
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-01-23 20:46:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-01-25 19:50:57 +0900
commitf27be165c4bbcc01c6ca4ecca410f68177d117e3 (patch)
tree157a1769c892a4aa14e7e68e640d23e37f1e9f4c /src/modules/avatar
parent5f11552ae34058d7f0db5c78812096352c639602 (diff)
downloadkvirc-f27be165c4bbcc01c6ca4ecca410f68177d117e3.tar.gz
kvirc-f27be165c4bbcc01c6ca4ecca410f68177d117e3.zip
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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/avatar')
-rw-r--r--src/modules/avatar/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/avatar/Makefile.am b/src/modules/avatar/Makefile.am
index 8e8a793a..bb5050e3 100644
--- a/src/modules/avatar/Makefile.am
+++ b/src/modules/avatar/Makefile.am
@@ -12,7 +12,7 @@ libkviavatar_la_LDFLAGS = -module -avoid-version $(SS_LDFLAGS) $(SS_LIBDIRS)
libkviavatar_la_SOURCES = libkviavatar.cpp
nodist_libkviavatar_la_SOURCES = moc_libkviavatar.cpp
-libkviavatar_la_LIBADD = $(SS_LIBLINK) ../../kvilib/build/libkvilib.la
+libkviavatar_la_LIBADD = $(SS_LIBLINK) ../../kvirc/build/libkvirc.la
noinst_HEADERS = libkviavatar.h