external/cppunit: Visible function type RTTI for Clang -fsanitize=function
Change-Id: Ie2a6e993b7982629aed650d6534a09a9eefe1c51
This commit is contained in:
+1
@@ -19,6 +19,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,cppunit,\
|
||||
external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0 \
|
||||
external/cppunit/enable-win32-debug.patch \
|
||||
external/cppunit/0001-mark-the-fails-as-no-return.patch.1 \
|
||||
external/cppunit/rtti.patch.0 \
|
||||
))
|
||||
ifeq ($(DISABLE_DYNLOADING),TRUE)
|
||||
$(eval $(call gb_UnpackedTarball_add_patches,cppunit,\
|
||||
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
--- include/cppunit/config/CppUnitApi.h
|
||||
+++ include/cppunit/config/CppUnitApi.h
|
||||
@@ -20,6 +20,12 @@
|
||||
#define CPPUNIT_NEED_DLL_DECL 1
|
||||
#endif
|
||||
|
||||
+#elif defined __GNUC__ //TODO: actually only works for modern enough GCC
|
||||
+
|
||||
+#define CPPUNIT_API __attribute__ ((visibility("default")))
|
||||
+#undef CPPUNIT_NEED_DLL_DECL
|
||||
+#define CPPUNIT_NEED_DLL_DECL 0
|
||||
+
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user