1 --- configure.in.old 2009-04-06 16:41:41.000000000 +0000
2 +++ configure.in 2009-04-06 16:41:41.000000000 +0000
3 @@ -2442,6 +2442,7 @@ fi
4 dnl ===================================================================
5 dnl system stl sanity tests
6 dnl ===================================================================
7 +HAVE_GCC_VISIBILITY_BROKEN=
8 if test "$USE_SYSTEM_STL" = "YES"; then
9 AC_MSG_CHECKING([if hash_map will be in __gnu_cxx namespace])
11 @@ -2481,9 +2482,9 @@ using namespace std;
13 AC_MSG_RESULT([$gccvisok])
14 if test "$gccvisok" = "no"; then
15 - AC_MSG_WARN([Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility])
16 - echo "Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >> warn
17 - unset HAVE_GCC_VISIBILITY_FEATURE
18 + AC_MSG_WARN([Your gcc is not -fvisibility-inlines-hidden safe, disabling that.])
19 + echo "Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >> warn
20 + HAVE_GCC_VISIBILITY_BROKEN="TRUE"
23 LDFLAGS=$sharedlink_ldflags_save
24 @@ -2523,6 +2524,7 @@ _ACEOF
27 AC_SUBST(HAVE_GCC_VISIBILITY_FEATURE)
28 +AC_SUBST(HAVE_GCC_VISIBILITY_BROKEN)
30 dnl ===================================================================
32 --- set_soenv.in.old 2009-04-06 16:41:41.000000000 +0000
33 +++ set_soenv.in 2009-04-06 16:41:41.000000000 +0000
34 @@ -1874,6 +1874,8 @@ ToFile( "JAVAHOME", $JAVAHOME,
35 ToFile( "CC", $CC, "e" );
36 ToFile( "HAVE_GCC_VISIBILITY_FEATURE",
37 "@HAVE_GCC_VISIBILITY_FEATURE@", "e" );
38 +ToFile( "HAVE_GCC_VISIBILITY_BROKEN",
39 + "@HAVE_GCC_VISIBILITY_BROKEN@", "e" );
40 ToFile( "HAVE_LD_HASH_STYLE","@HAVE_LD_HASH_STYLE@","e" );
41 ToFile( "CXX", $CXX, "e" );
42 ToFile( "MINGWCXX", "@MINGWCXX@", "e" );
43 --- solenv/inc/unxlngx6.mk.old 2009-04-02 10:53:10.000000000 +0000
44 +++ solenv/inc/unxlngx6.mk 2009-04-06 16:41:41.000000000 +0000
45 @@ -97,7 +97,7 @@ CFLAGSCXX= -pipe $(ARCH_FLAGS)
46 CFLAGSCXX+= -Wno-ctor-dtor-privacy
47 CFLAGSCXX+= -fno-use-cxa-atexit
49 -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
50 +.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" && "$(HAVE_GCC_VISIBILITY_BROKEN)" != "TRUE"
51 CFLAGSCXX += -fvisibility-inlines-hidden
52 .ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"