[xiph-commits] r17859 - in trunk/ao: . src
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Tue Feb 22 08:22:54 PST 2011
Author: xiphmont
Date: 2011-02-22 08:22:54 -0800 (Tue, 22 Feb 2011)
New Revision: 17859
Modified:
trunk/ao/configure.ac
trunk/ao/src/Makefile.am
Log:
Commit ld versioning patch submitted in Trac #1764
Modified: trunk/ao/configure.ac
===================================================================
--- trunk/ao/configure.ac 2011-02-22 05:21:29 UTC (rev 17858)
+++ trunk/ao/configure.ac 2011-02-22 16:22:54 UTC (rev 17859)
@@ -117,6 +117,21 @@
esac
AC_SUBST(LIBAO_LA_LDFLAGS)
+dnl ===================================
+dnl Check for symbol versioning support
+dnl ===================================
+
+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)
+fi
+AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
+
dnl ==============================
dnl Check for libraries
dnl ==============================
Modified: trunk/ao/src/Makefile.am
===================================================================
--- trunk/ao/src/Makefile.am 2011-02-22 05:21:29 UTC (rev 17858)
+++ trunk/ao/src/Makefile.am 2011-02-22 16:22:54 UTC (rev 17859)
@@ -15,6 +15,9 @@
libao_la_SOURCES = audio_out.c config.c ao_null.c ao_wav.c ao_au.c ao_raw.c ao_aixs.c $(wmm)
libao_la_LDFLAGS = @LIBAO_LA_LDFLAGS@ -version-info @LIB_CURRENT@:@LIB_REVISION@:@LIB_AGE@
+if HAVE_LD_VERSION_SCRIPT
+ libao_la_LDFLAGS += -Wl,--version-script=ao.vers
+endif
debug:
More information about the commits
mailing list