For Clang -fsanitize=vptr use -fvisibility-ms-compat, not -fvisibility=hidden

...same as f0aa1a78fb

Change-Id: I89e20a57125012a6805b8d61ec668068b7149be2
This commit is contained in:
Stephan Bergmann
2015-06-12 10:25:51 +02:00
parent 45cf2e2c58
commit c5ca7ede1d
2 changed files with 19 additions and 0 deletions

View File

@@ -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:

View 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. */