From fb3f5fe9360f564e6e4bf6fc819e2be4c2abb5e5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 26 Aug 2020 17:08:12 +0200 Subject: UBSan needs sk_app::WindowContext RTTI in Library_vcl ...as seen during CppunitTest_basic_scanner: > DynamicLibraryManagerException: "Failed to load dynamic library: workdir/LinkTarget/CppunitTest/libtest_basic_scanner.so > instdir/program/libvcllo.so: undefined symbol: _ZTIN6sk_app13WindowContextE" Change-Id: I7c39d19fda3cdfe51b5ccf117ffe5c6c89863258 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101410 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- external/skia/make-api-visible.patch.1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'external/skia/make-api-visible.patch.1') diff --git a/external/skia/make-api-visible.patch.1 b/external/skia/make-api-visible.patch.1 index bb574b762f5b..6f2cd3b05a6c 100644 --- a/external/skia/make-api-visible.patch.1 +++ b/external/skia/make-api-visible.patch.1 @@ -1,3 +1,18 @@ +--- a/tools/sk_app/WindowContext.h ++++ b/tools/sk_app/WindowContext.h +@@ -17,7 +17,11 @@ + + namespace sk_app { + +-class WindowContext { ++class ++#if defined __clang__ && !defined _MSC_VER ++__attribute__((type_visibility("default"))) ++#endif ++WindowContext { + public: + WindowContext(const DisplayParams&); + diff --git a/tools/sk_app/unix/WindowContextFactory_unix.h b/tools/sk_app/unix/WindowContextFactory_unix.h index 11bd2d2ac2..09c92dc417 100644 --- a/tools/sk_app/unix/WindowContextFactory_unix.h -- cgit