summaryrefslogtreecommitdiffstats
path: root/src/modules/snd/Makefile.am
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-24 22:23:30 +0900
commit8ef986c6c554e7a0d755f3e27f6d1b3fd92088f1 (patch)
treef5700e38f419abd5320131378d0590705585bc6d /src/modules/snd/Makefile.am
parente1455188ea48c503338917da620084af4e0832a8 (diff)
downloadkvirc-feat/separate-kvirc-lib.tar.gz
kvirc-feat/separate-kvirc-lib.zip
Split kvirc executable into a shared library (libkvirc) and a stub executable (kvirc).feat/separate-kvirc-lib
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/snd/Makefile.am')
-rw-r--r--src/modules/snd/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/snd/Makefile.am b/src/modules/snd/Makefile.am
index 09e193a6..10e1110a 100644
--- a/src/modules/snd/Makefile.am
+++ b/src/modules/snd/Makefile.am
@@ -11,7 +11,7 @@ pluglib_LTLIBRARIES = libkvisnd.la
libkvisnd_la_LDFLAGS = -module -avoid-version $(SS_LDFLAGS) $(SS_LIBDIRS)
libkvisnd_la_SOURCES = libkvisnd.cpp
-libkvisnd_la_LIBADD = $(SS_LIBLINK) ../../kvilib/build/libkvilib.la
+libkvisnd_la_LIBADD = $(SS_LIBLINK) ../../kvirc/build/libkvirc.la
noinst_HEADERS= libkvisnd.h