From 5e79a328645e6bc2ac3cbd7f2d6b9298772c0598 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 8 Mar 2016 08:34:09 +0100 Subject: New LOK_LOADLIB_GLOBAL to let clients control dlopen(RTLD_GLOBAL) ...in LibreOfficeKintInit.h's lok_loadlib, now that RTLD_GLOBAL isn't only needed for UBSan (62b124b2704adf11a63681164d05a8eb49dfb105 "Ensure RTTI symbol visibility for Linux Clang -fsanitize=function,vptr") but also for -stdlib=libc++ on Linux (see ). Change-Id: I24ed6612c3d922eba695423d46af5635c77f7077 --- libreofficekit/qa/unit/tiledrendering.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libreofficekit') diff --git a/libreofficekit/qa/unit/tiledrendering.cxx b/libreofficekit/qa/unit/tiledrendering.cxx index e28fece0d8cb..1df2eff37f54 100644 --- a/libreofficekit/qa/unit/tiledrendering.cxx +++ b/libreofficekit/qa/unit/tiledrendering.cxx @@ -19,8 +19,14 @@ #include #include +#if defined __clang__ && defined __linux__ +#include #include - // see use of ENABLE_RUNTIME_OPTIMIZATIONS in LibreOfficeKintInit.h +#if defined _LIBCPPABI_VERSION || !ENABLE_RUNTIME_OPTIMIZATIONS +#define LOK_LOADLIB_GLOBAL +#endif +#endif + #include #include #include -- cgit