-version-script is an ELF/GNU-ld feature, not available with other
linkers & platforms. Libtool already knows when to use it, so attached
path just piggy-backs on their main test for this feature. I think
they also exclude some other platforms, but this appears to work on
linux (passes the flag, tested with libtool-1.5.22) with and OS X
(doesn't pass it, tested with libtool-2.2.4).

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks

diff -Nurd -x'*~' libcanberra-0.6/configure.ac 
libcanberra-0.6-vsfixed/configure.ac
--- libcanberra-0.6/configure.ac        2008-08-04 13:58:58.000000000 -0400
+++ libcanberra-0.6-vsfixed/configure.ac        2008-08-13 11:00:34.000000000 
-0400
@@ -106,6 +106,8 @@
 
 AM_CONDITIONAL(OS_IS_WIN32, test "x$os_is_win32" = "x1")
 
+AM_CONDITIONAL(USE_VERSION_SCRIPT, test "x$supports_anon_versioning" = "xyes" )
+
 ###################################
 #   Basic environment checks      #
 ###################################
diff -Nurd -x'*~' libcanberra-0.6/src/Makefile.am 
libcanberra-0.6-vsfixed/src/Makefile.am
--- libcanberra-0.6/src/Makefile.am     2008-07-29 18:17:36.000000000 -0400
+++ libcanberra-0.6-vsfixed/src/Makefile.am     2008-08-13 11:01:05.000000000 
-0400
@@ -60,8 +60,11 @@
        $(VORBIS_LIBS)
 libcanberra_la_LDFLAGS = \
        -export-dynamic \
-       -version-info $(LIBCANBERRA_VERSION_INFO) \
-       -Wl,-version-script=$(srcdir)/map-file
+       -version-info $(LIBCANBERRA_VERSION_INFO)
+
+if USE_VERSION_SCRIPT
+libcanberra_la_LDFLAGS += -Wl,-version-script=$(srcdir)/map-file
+endif
 
 plugin_LTLIBRARIES =
 
_______________________________________________
libcanberra-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss

Reply via email to