Hello community, here is the log from the commit of package pcre for openSUSE:Factory checked in at Sat Nov 20 11:15:08 CET 2010. -------- --- pcre/pcre.changes 2010-09-19 11:44:07.000000000 +0200 +++ /mounts/work_src_done/STABLE/pcre/pcre.changes 2010-10-30 04:15:57.000000000 +0200 @@ -1,0 +2,5 @@ +Sat Oct 30 02:15:06 UTC 2010 - cristian.rodriguez@opensuse.org + +- Support GCC visibility, symbol clashes no more. + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- pcre-visibility.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pcre.spec ++++++ --- /var/tmp/diff_new_pack.JSxlQs/_old 2010-11-20 11:14:55.000000000 +0100 +++ /var/tmp/diff_new_pack.JSxlQs/_new 2010-11-20 11:14:55.000000000 +0100 @@ -21,7 +21,7 @@ Name: pcre BuildRequires: gcc-c++ pkg-config Version: 8.10 -Release: 1 +Release: 2 Summary: A library for Perl-compatible regular expressions License: BSD3c(or similar) ; Other uncritical OpenSource License Group: System/Libraries @@ -34,6 +34,7 @@ Source: %name-%version.tar.bz2 Source2: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch: pcre-visibility.patch %description The PCRE library is a set of functions that implement regular @@ -117,9 +118,12 @@ %prep %setup -q +%patch %build -%configure --disable-static \ +mkdir m4 +autoreconf -fiv +%configure --enable-hidden-symbols --disable-static \ --with-link-size=2 \ --with-match-limit=10000000 \ --enable-newline-is-lf \ ++++++ pcre-visibility.patch ++++++ --- configure.ac.orig +++ configure.ac @@ -672,6 +672,44 @@ if test "$enable_pcretest_libreadline" = fi AC_SUBST(LIBREADLINE) + + dnl ************************************************************ + dnl Enable hiding of internal symbols in library to reduce its size and + dnl speed dynamic linking of applications. This currently is only supported + dnl on gcc >= 4.0 and SunPro C. + dnl + AC_MSG_CHECKING([whether to enable hidden symbols in the library]) + AC_ARG_ENABLE(hidden-symbols, + AC_HELP_STRING([--enable-hidden-symbols],[Hide internal symbols in library]) + AC_HELP_STRING([--disable-hidden-symbols],[Leave all symbols with default visibility in library]), + [ case "$enableval" in + no) + AC_MSG_RESULT(no) + ;; + *) + AC_MSG_CHECKING([whether $CC supports it]) + if test "$GCC" = yes ; then + if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then + AC_MSG_RESULT(yes) + AC_DEFINE(PCRE_EXP_DECL, [extern __attribute__ ((visibility ("default")))], [to make a symbol visible]) + AC_DEFINE(PCRE_EXP_DEFN, [__attribute__ ((visibility ("default")))], [to make a symbol visible]) + AC_DEFINE(PCRE_EXP_DATA_DEFN, [__attribute__ ((visibility ("default")))], [to make a symbol visible]) + AC_DEFINE(PCREPOSIX_EXP_DECL, [extern __attribute__ ((visibility ("default")))], [to make a symbol visible]) + AC_DEFINE(PCREPOSIX_EXP_DEFN, [extern __attribute__ ((visibility ("default")))], [to make a symbol visible]) + AC_DEFINE(PCRECPP_EXP_DECL, [extern __attribute__ ((visibility ("default")))], [to make a symbol visible]) + AC_DEFINE(PCRECPP_EXP_DEFN, [__attribute__ ((visibility ("default")))], [to make a symbol visible]) + CFLAGS="$CFLAGS -fvisibility=hidden" + CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden" + else + AC_MSG_RESULT(no) + fi + + fi + ;; + esac ], + AC_MSG_RESULT(no) + ) + # Produce these files, in addition to config.h. AC_CONFIG_FILES( Makefile --- Makefile.am.orig +++ Makefile.am @@ -252,7 +252,7 @@ TESTS += RunGrepTest dist_noinst_SCRIPTS += RunGrepTest bin_PROGRAMS += pcregrep pcregrep_SOURCES = pcregrep.c -pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2) +pcregrep_LDADD = libpcreposix.la libpcre.la $(LIBZ) $(LIBBZ2) EXTRA_DIST += \ testdata/grepinput \ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org