From e3c9512b252ebb19f3a7d1d66e55ff8e6ca4086a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 11 Feb 2012 12:49:47 -0500 Subject: [PATCH] notes on symbol versioning --- TODO | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/TODO b/TODO index 5f7b739d..eab2f7c4 100644 --- a/TODO +++ b/TODO @@ -5,6 +5,52 @@ Next to build and test cleanly in 2.3.1. Hopefully the next release will include 64-bit binary distributions and external libraries. + * Add versioned symbols. Fix below to not use AM_CONDITIONAL. Just + set some variable that can be part of LDFLAGS, like + LD_VERSION_SCRIPT, instead. + +# Check if LD supports linker scripts, and define conditional +# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently +# constrained to compilers using GNU ld on ELF systems or systems +# which provide an adequate emulation thereof. +AC_ARG_ENABLE([ld-version-script], + AS_HELP_STRING([--enable-ld-version-script], + [enable linker version script (default is disabled)]), + [have_ld_version_script=$enableval], [have_ld_version_script=no]) +if test "$have_ld_version_script" != no; then + AC_MSG_CHECKING([if LD -Wl,--version-script works]) + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" + cat > conftest.map <