diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-26 15:04:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-26 15:17:29 +0100 |
commit | 875dc064aa3533dcc41416166ba957c02f81f0bf (patch) | |
tree | d4c4305a4626ba182198158e695483858e00fcf7 /external | |
parent | 598d8194b0ea1a64e0ebba28a86c128bafa57c7c (diff) |
external/boost: Visible function type RTTI for Clang -fsanitize=function
Change-Id: I6a1ab01bbe5cd128b132c3f6dde4b520ddb4c373
Diffstat (limited to 'external')
-rw-r--r-- | external/boost/UnpackedTarball_boost.mk | 1 | ||||
-rw-r--r-- | external/boost/rtti.patch.0 | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk index 09295d0274a6..b0ffa9e21c89 100644 --- a/external/boost/UnpackedTarball_boost.mk +++ b/external/boost/UnpackedTarball_boost.mk @@ -108,6 +108,7 @@ boost_patches += boost.boost_static_assert_unused_attribute.patch.0 boost_patches += w4702.patch.0 boost_patches += ubsan.patch.0 +boost_patches += rtti.patch.0 $(eval $(call gb_UnpackedTarball_UnpackedTarball,boost)) diff --git a/external/boost/rtti.patch.0 b/external/boost/rtti.patch.0 new file mode 100644 index 000000000000..fb689edd1503 --- /dev/null +++ b/external/boost/rtti.patch.0 @@ -0,0 +1,20 @@ +--- boost/function/function_base.hpp ++++ boost/function/function_base.hpp +@@ -97,7 +97,7 @@ + * object pointers, and a structure that resembles a bound + * member function pointer. + */ +- union function_buffer ++ union BOOST_SYMBOL_VISIBLE function_buffer + { + // For pointers to function objects + mutable void* obj_ptr; +@@ -159,7 +159,7 @@ + }; + + // The operation type to perform on the given functor/function pointer +- enum functor_manager_operation_type { ++ enum BOOST_SYMBOL_VISIBLE functor_manager_operation_type { + clone_functor_tag, + move_functor_tag, + destroy_functor_tag, |