[Bug 144598] Versioned symbols
libcroco (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Mon May 1 18:34:23 UTC 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=144598
libcroco | General | Ver: 0.6
------- Comment #3 from Josselin Mouette 2006-05-01 18:34 UTC -------
This is because not all dynamic linkers support -version-script.
This patch is far from being optimal anyway, because the ability to use
-version-script should be detected at configure time.
Something like this would be more suitable (stolen from libgnutls):
AC_MSG_CHECKING([if libraries can be versioned])
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
if test "$GLD"; then
have_ld_version_script=yes
AC_MSG_RESULT(yes)
else
have_ld_version_script=no
AC_MSG_RESULT(no)
AC_MSG_WARN(***
*** You may want to rerun configure using --with-gnu-ld to enable versioned
symbols.
)
fi
AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
and in Makefile.am:
if HAVE_LD_VERSION_SCRIPT
libcroco_0_6_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutls.vers
endif
If you're planning to restrict the list of exported symbols like you did for
librsvg, it has to be done in the same version script, as it is unfortunately
impossible to mix -Wl,--version-script with -export-symbols (the latter uses
the former internally).
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Pkg-gnome-maintainers
mailing list