desktop/Executable_soffice_bin.mk | 4 ++++ desktop/source/app/main.c | 4 ++++ 2 files changed, 8 insertions(+)
New commits: commit 6ac1e9e7f0be23b529992c268d2c563fe40fff76 Author: Jan-Marek Glogowski <[email protected]> AuthorDate: Wed Dec 1 19:37:19 2021 +0100 Commit: Jan-Marek Glogowski <[email protected]> CommitDate: Fri Dec 3 04:56:36 2021 +0100 Disable the xmlCleanupParser test in a static build Linking the static soffice.bin results in a failure, because of the duplicate xmlCleanupParser symbol. I don't think there is a sensible, alternative runtime test for a static LO build. You could analyse the static binary itself... Change-Id: Ib871e378a28affca24c4285d396d8bcae478f1f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126198 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <[email protected]> diff --git a/desktop/Executable_soffice_bin.mk b/desktop/Executable_soffice_bin.mk index 9c08a28361df..14a72ab6c055 100644 --- a/desktop/Executable_soffice_bin.mk +++ b/desktop/Executable_soffice_bin.mk @@ -14,6 +14,10 @@ $(eval $(call gb_Executable_set_include,soffice_bin,\ -I$(SRCDIR)/desktop/source/inc \ )) +$(eval $(call gb_Executable_add_defs,soffice_bin,\ + $(if $(DISABLE_DYNLOADING),$(if $(SYSTEM_LIBXML),,-DNOTEST_xmlCleanupParser)) \ +)) + $(eval $(call gb_Executable_use_libraries,soffice_bin,\ sal \ sofficeapp \ diff --git a/desktop/source/app/main.c b/desktop/source/app/main.c index 6631c3ceb337..fdd2eb3505dc 100644 --- a/desktop/source/app/main.c +++ b/desktop/source/app/main.c @@ -21,6 +21,7 @@ #include "sofficemain.h" +#ifndef NOTEST_xmlCleanupParser #ifdef DBG_UTIL #ifdef __gnu_linux__ #include <stdio.h> @@ -43,14 +44,17 @@ __attribute__((visibility("default"))) void xmlCleanupParser(void) } #endif #endif +#endif // NOTEST_xmlCleanupParser SAL_IMPLEMENT_MAIN() { int ret = soffice_main(); +#ifndef NOTEST_xmlCleanupParser #ifdef DBG_UTIL #ifdef __gnu_linux__ g_Exiting = 1; #endif +#endif #endif return ret; }
