[Libreoffice-commits] core.git: configure.ac
Stephan Bergmann
sbergman at redhat.com
Fri Sep 23 09:12:56 UTC 2016
configure.ac | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
New commits:
commit 5d787f957db7a784cd9bbd092eb0bf1c9e80ba6d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Sep 23 11:10:06 2016 +0200
Don't check HAVE_GCC_VISIBILITY_FEATURE with clang-cl (intended to fail there)
Change-Id: I4cae18e1359f2e30ef4d4d7d550306489fcedd74
diff --git a/configure.ac b/configure.ac
index 7945b12..df3e976 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5934,16 +5934,17 @@ dnl ===================================================================
dnl visibility and other gcc features
dnl ===================================================================
if test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then
- AC_MSG_CHECKING([whether $CC supports -fvisibility=hidden])
- save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ return 0; ]])],[ HAVE_GCC_VISIBILITY_FEATURE=TRUE ],[])
- CFLAGS=$save_CFLAGS
-
- if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_ERROR([no This is no longer supported.])
+ if test "$COM" != MSC; then
+ AC_MSG_CHECKING([whether $CC supports -fvisibility=hidden])
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ return 0; ]])],[ HAVE_GCC_VISIBILITY_FEATURE=TRUE ],[])
+ CFLAGS=$save_CFLAGS
+ if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_ERROR([no This is no longer supported.])
+ fi
fi
AC_MSG_CHECKING([whether $CC supports -mno-avx])
More information about the Libreoffice-commits
mailing list