summaryrefslogtreecommitdiff
path: root/xmlreader
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-11-29 08:32:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-12-02 07:39:52 +0100
commit45d93ea9273a59053f60471ee82bb9fbd2d46c97 (patch)
tree493f006d0266107a4ddaa93e42f71777d6016c27 /xmlreader
parent6052d7b6e488250545653adcec541095a3d33300 (diff)
Fix clang-cl -Zc:dllexportInlines- build
That flag is only supported by clang-cl, not by MSVC, and c7c9f3f57a2feae5d3bc3c47104786883ed09e44 "use clang-cl's -Zc:dllexportInlines- for clang-cl builds" apparently naively assumed that it would work to build LO with clang-cl and that flag without actually trying it out, and 1040228c356d75c5228cde4d6103f9b446848e4b "My clang-cl build does not work with -Zc:dllexportInlines-" effectively disabled it completely. The way to avoid unresolved external symbols during linking of URE libraries (see the 1040228c356d75c5228cde4d6103f9b446848e4b commit message) is apparently to also build libraries that the URE libraries depend on with the flag, hence the change from gb_Library_set_is_ure_library to gb_Library_set_is_ure_library_or_dependency. For now, I only marked those additional libraries (unoil and xmlreader) that actually caused issues when linking the URE libraries. Change-Id: I3a85c73246250981cd86b7ee41f87b41f393a4b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126012 Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'xmlreader')
-rw-r--r--xmlreader/Library_xmlreader.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlreader/Library_xmlreader.mk b/xmlreader/Library_xmlreader.mk
index fa4a6711c9b4..f99d584749f6 100644
--- a/xmlreader/Library_xmlreader.mk
+++ b/xmlreader/Library_xmlreader.mk
@@ -23,6 +23,8 @@ $(eval $(call gb_Library_add_defs,xmlreader,\
-DOOO_DLLIMPLEMENTATION_XMLREADER \
))
+$(eval $(call gb_Library_set_is_ure_library_or_dependency,xmlreader))
+
$(eval $(call gb_Library_use_external,xmlreader,boost_headers))
$(eval $(call gb_Library_use_libraries,xmlreader,\