diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-23 20:46:26 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-23 22:45:59 +0900 |
| commit | 1d6be444df0a8b29bb393fdbecc00c8762512089 (patch) | |
| tree | 565488bfa57a22e7732faa343de46031108fa185 /src/modules/sharedfile/Makefile.am | |
| parent | 1f4b4aed5651214087b0297333c3fa32ea26bcd5 (diff) | |
| download | kvirc-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/sharedfile/Makefile.am')
| -rw-r--r-- | src/modules/sharedfile/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/sharedfile/Makefile.am b/src/modules/sharedfile/Makefile.am index 5c4ace3b..013c24bf 100644 --- a/src/modules/sharedfile/Makefile.am +++ b/src/modules/sharedfile/Makefile.am @@ -10,7 +10,7 @@ pluglib_LTLIBRARIES = libkvisharedfile.la libkvisharedfile_la_LDFLAGS = -module -avoid-version $(SS_LDFLAGS) $(SS_LIBDIRS) libkvisharedfile_la_SOURCES = libkvisharedfile.cpp -libkvisharedfile_la_LIBADD = $(SS_LIBLINK) ../../kvilib/build/libkvilib.la +libkvisharedfile_la_LIBADD = $(SS_LIBLINK) ../../kvirc/build/libkvirc.la #noinst_HEADERS= sharedfilewindow.h |
