Project

General

Profile

Bug #627 ยป exiv2-0.18.1-visibility.patch

patch to use only -fvisibility=hidden. you're likely only interested in the configure.ac bits - Rex Dieter, 17 Apr 2009 13:08

View differences:

exiv2-0.18.1/config/configure.ac 2009-04-17 14:36:01.000000000 -0500
111 111
    GXX_VISIBILITY=$enableval, GXX_VISIBILITY=yes)
112 112
AC_MSG_RESULT($GXX_VISIBILITY)
113 113
if test "$GXX_VISIBILITY" = "yes"; then
114
    AX_CXX_CHECK_FLAG(-fvisibility-inlines-hidden,[],[],[GXX_VISIBILITY=yes],[GXX_VISIBILITY=no])
114
    AX_CXX_CHECK_FLAG(-fvisibility=hidden,[],[],[GXX_VISIBILITY=yes],[GXX_VISIBILITY=no])
115 115
    if test "$GXX_VISIBILITY" = "yes"; then
116
        CXXFLAGS="${CXXFLAGS} -fvisibility=hidden -fvisibility-inlines-hidden"
116
        CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
117 117
        AC_DEFINE(HAVE_GXXCLASSVISIBILITY,1)
118 118
    fi
119 119
    if test "$enable_shared" = "yes"; then
exiv2-0.18.1/configure 2009-04-17 14:48:51.000000000 -0500
23905 23905

  
23906 23906

  
23907 23907
    if test "$GXX_VISIBILITY" = "yes"; then
23908
        CXXFLAGS="${CXXFLAGS} -fvisibility=hidden -fvisibility-inlines-hidden"
23908
        CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
23909 23909
        cat >>confdefs.h <<\_ACEOF
23910 23910
#define HAVE_GXXCLASSVISIBILITY 1
23911 23911
_ACEOF
    (1-1/1)