[Libreoffice-commits] .: configure.in set_soenv.in solenv/inc
Fridrich Strba
fridrich at kemper.freedesktop.org
Thu Nov 25 04:49:50 PST 2010
configure.in | 8 +++++---
set_soenv.in | 2 ++
solenv/inc/unxgcc.mk | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
New commits:
commit 1e7d9e3074c834aa9a83a9b8c9df4bedbb7a6afa
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Thu Nov 25 13:44:28 2010 +0100
buildfix-x86-64-visibility-workaround.diff: migrate to git
diff --git a/configure.in b/configure.in
index 5812d6b..268ca0d 100644
--- a/configure.in
+++ b/configure.in
@@ -3206,6 +3206,7 @@ fi
dnl ===================================================================
dnl system stl sanity tests
dnl ===================================================================
+HAVE_GCC_VISIBILITY_BROKEN=
if test "$USE_SYSTEM_STL" = "YES"; then
AC_MSG_CHECKING([if hash_map will be in __gnu_cxx namespace])
AC_LANG_PUSH([C++])
@@ -3245,9 +3246,9 @@ using namespace std;
gccvisok=no)
AC_MSG_RESULT([$gccvisok])
if test "$gccvisok" = "no"; then
- AC_MSG_WARN([Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility])
- echo "Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >> warn
- unset HAVE_GCC_VISIBILITY_FEATURE
+ AC_MSG_WARN([Your gcc is not -fvisibility-inlines-hidden safe, disabling that.])
+ echo "Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >> warn
+ HAVE_GCC_VISIBILITY_BROKEN="TRUE"
fi
LDFLAGS=$sharedlink_ldflags_save
@@ -3294,6 +3295,7 @@ _ACEOF
fi
AC_SUBST(HAVE_GCC_VISIBILITY_FEATURE)
+AC_SUBST(HAVE_GCC_VISIBILITY_BROKEN)
dnl ===================================================================
dnl allocator
diff --git a/set_soenv.in b/set_soenv.in
index dad411b..3f3bea2 100644
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1832,6 +1832,8 @@ ToFile( "JAVAHOME", $JAVAHOME, "e" );
ToFile( "CC", $CC, "e" );
ToFile( "HAVE_GCC_VISIBILITY_FEATURE",
"@HAVE_GCC_VISIBILITY_FEATURE@", "e" );
+ToFile( "HAVE_GCC_VISIBILITY_BROKEN",
+ "@HAVE_GCC_VISIBILITY_BROKEN@", "e" );
ToFile( "HAVE_LD_HASH_STYLE","@HAVE_LD_HASH_STYLE@","e" );
ToFile( "HAVE_LD_BSYMBOLIC_FUNCTIONS",
"@HAVE_LD_BSYMBOLIC_FUNCTIONS@","e" );
diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk
index b54736c..63475e7 100644
--- a/solenv/inc/unxgcc.mk
+++ b/solenv/inc/unxgcc.mk
@@ -89,7 +89,7 @@ CFLAGS_NO_EXCEPTIONS=-fno-exceptions
# -fpermissive should be removed as soon as possible
CFLAGSCXX= -pipe $(ARCH_FLAGS)
-.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
+.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" && "$(HAVE_GCC_VISIBILITY_BROKEN)" != "TRUE"
CFLAGSCXX += -fvisibility-inlines-hidden
.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
More information about the Libreoffice-commits
mailing list