For Clang -fsanitize=vptr use -fvisibility-ms-compat, not -fvisibility=hidden
...same as f0aa1a78fb
Change-Id: I89e20a57125012a6805b8d61ec668068b7149be2
This commit is contained in:
8
external/libwps/UnpackedTarball_libwps.mk
vendored
8
external/libwps/UnpackedTarball_libwps.mk
vendored
@@ -18,4 +18,12 @@ $(eval $(call gb_UnpackedTarball_add_patches,libwps,\
|
||||
external/libwps/0001-error-C2065-M_PI-undeclared-identifier.patch \
|
||||
))
|
||||
|
||||
ifeq ($(COM_GCC_IS_CLANG),TRUE)
|
||||
ifneq ($(filter -fsanitize=%,$(CC)),)
|
||||
$(eval $(call gb_UnpackedTarball_add_patches,libwps, \
|
||||
external/libwps/ubsan-visibility.patch.0 \
|
||||
))
|
||||
endif
|
||||
endif
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
11
external/libwps/ubsan-visibility.patch.0
vendored
Normal file
11
external/libwps/ubsan-visibility.patch.0
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
--- configure
|
||||
+++ configure
|
||||
@@ -16632,7 +16632,7 @@
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
|
||||
$as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
|
||||
saved_CXXFLAGS="$CXXFLAGS"
|
||||
- CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
|
||||
+ CXXFLAGS="$CXXFLAGS -fvisibility-ms-compat"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
Reference in New Issue
Block a user