Fix linking CppunitTest/test_sc_jumbosheets_test on Windows

...where it started to fail for me with

> jumbosheets-test.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl SvRefBase::ReleaseRef(void)" (__imp_?ReleaseRef@SvRefBase@@QEAAXXZ) referenced in function "public: __cdecl tools::SvRef<class ScDocShell>::~SvRef<class ScDocShell>(void)" (??1?$SvRef@VScDocShell@@@tools@@QEAA@XZ)
> workdir\LinkTarget\CppunitTest\test_sc_jumbosheets_test.dll : fatal error LNK1120: 1 unresolved externals

(even though SvRefBase::ReleaseRef is defined inline in include/tools/ref.hxx;
but virtual ~SvRefBase is not, so presumably MSVC expects to find a copy of the
former emitted next to the latter).

Change-Id: I58ae9853cbf69ea58b156ae9ddf8a0a2e1dee090
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103252
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2020-09-23 16:53:11 +02:00
parent 0387077e66
commit d0b3e5fc81
+1
View File
@@ -32,6 +32,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sc_jumbosheets_test, \
scqahelper \
sfx \
test \
tl \
unotest \
vcl \
))