configure.ac | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 1040228c356d75c5228cde4d6103f9b446848e4b
Author: Stephan Bergmann <[email protected]>
AuthorDate: Tue Nov 23 07:49:53 2021 +0100
Commit: Stephan Bergmann <[email protected]>
CommitDate: Tue Nov 23 09:37:09 2021 +0100
My clang-cl build does not work with -Zc:dllexportInlines-
Lots of
> [build LNK] Library/cppuhelper3MSC.dll
> servicemanager.o : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __cdecl xmlreader::Span::Span(char const
*,long)" (__imp_??0Span@xmlreader@@QEAA@PEBDJ@Z) referenced in function
"public: __cdecl `anonymous namespace'::Parser::Parser(class rtl::OUString
const &,class com::sun::star::uno::Reference<class
com::sun::star::uno::XComponentContext> const &,struct
cppuhelper::ServiceManager::Data *)"
(??0Parser@?A0x40CCA2FC@@QEAA@AEBVOUString@rtl@@AEBV?$Reference@VXComponentContext@uno@star@sun@com@@@uno@star@sun@com@@PEAUData@ServiceManager@cppuhelper@@@Z)
> servicemanager.o : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __cdecl xmlreader::Span::Span(void)"
(__imp_??0Span@xmlreader@@QEAA@XZ) referenced in function "public: __cdecl
`anonymous namespace'::Parser::Parser(class rtl::OUString const &,class
com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext>
const &,struct cppuhelper::ServiceManager::Data *)"
(??0Parser@?A0x40CCA2FC@@QEAA@AEBVOUString@rtl@@AEBV?$Reference@VXComponentContext@uno@star@sun@com@@@uno@star@sun@com@@PEAUData@ServiceManager@cppuhelper@@@Z)
> servicemanager.o : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: bool __cdecl xmlreader::Span::equals(char const
*,long)const " (__imp_?equals@Span@xmlreader@@QEBA_NPEBDJ@Z) referenced in
function "public: __cdecl `anonymous namespace'::Parser::Parser(class
rtl::OUString const &,class com::sun::star::uno::Reference<class
com::sun::star::uno::XComponentContext> const &,struct
cppuhelper::ServiceManager::Data *)"
(??0Parser@?A0x40CCA2FC@@QEAA@AEBVOUString@rtl@@AEBV?$Reference@VXComponentContext@uno@star@sun@com@@@uno@star@sun@com@@PEAUData@ServiceManager@cppuhelper@@@Z)
[...]
Change-Id: I2cf96b8ce52027fa3c307a0973cdfb91fa990763
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <[email protected]>
diff --git a/configure.ac b/configure.ac
index 5c893e30fb9c..71cb0304dbfc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7627,7 +7627,9 @@ fi
AC_SUBST([HAVE_BROKEN_GCC_WSTRINGOP_OVERFLOW])
HAVE_DLLEXPORTINLINES=
-if test "$_os" = "WINNT"; then
+dnl At least for Clang 14 trunk, -Zc:dllexportInlines- would cause lots of
unresolved symbols when
+dnl linking e.g. Library_cppuhelper, for whatever reason:
+if test "$_os" = "WINNT" && test "$COM_IS_CLANG" != TRUE; then
AC_MSG_CHECKING([whether $CXX_BASE supports -Zc:dllexportInlines-])
AC_LANG_PUSH([C++])
save_CXXFLAGS=$CXXFLAGS