David Zeuthen 17c4cc
--- festival/speech_tools/config/rules/library.mak.soname	2001-04-04 07:55:32.000000000 -0400
David Zeuthen 17c4cc
+++ festival/speech_tools/config/rules/library.mak	2007-03-16 14:13:59.000000000 -0400
David Zeuthen 17c4cc
@@ -103,14 +103,14 @@
David Zeuthen 17c4cc
  ###########################################################################
David Zeuthen 17c4cc
 
David Zeuthen 17c4cc
 lib%.so : lib%.a
David Zeuthen 17c4cc
-	@echo Make Shared Library $*
David Zeuthen 17c4cc
+	@echo Make Shared Library $(*F)
David Zeuthen 17c4cc
 	@if [ ! -d shared_space ] ; then mkdir shared_space ; else $(RM) -f shared_space/*.o ; fi
David Zeuthen 17c4cc
 	@(cd shared_space ; $(AR) x ../$< ) 
David Zeuthen 17c4cc
-	@echo Link Shared Library $*
David Zeuthen 17c4cc
-	if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_$*)" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\
David Zeuthen 17c4cc
-	$(subst XXX,$@.$(PROJECT_LIBRARY_VERSION_$*),$(MAKE_SHARED_LIB)) shared_space/*.o $(PROJECT_LIBRARY_USES_$*:%=-L. -l%) $$libs
David Zeuthen 17c4cc
+	@echo Link Shared Library $(*F)
David Zeuthen 17c4cc
+	if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_$(*F))" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\
David Zeuthen 17c4cc
+	$(subst XXX,$@.$(PROJECT_LIBRARY_VERSION_$(*F)),$(subst YYY,$(@F).$(PROJECT_LIBRARY_VERSION_$(*F)),$(MAKE_SHARED_LIB))) shared_space/*.o $(PROJECT_LIBRARY_USES_$(*F):%=-L. -l%) $$libs
David Zeuthen 17c4cc
 	@$(RM) -f shared_space/*.o $@
David Zeuthen 17c4cc
-	@ln -s $@.$(PROJECT_LIBRARY_VERSION_$*) $@
David Zeuthen 17c4cc
+	@ln -s $(@F).$(PROJECT_LIBRARY_VERSION_$(*F)) $@
David Zeuthen 17c4cc
 
David Zeuthen 17c4cc
  ###########################################################################
David Zeuthen 17c4cc
  ##                                                                       ##
David Zeuthen 17c4cc
--- festival/speech_tools/config/compilers/gcc_defaults.mak.soname	2007-03-16 12:43:31.000000000 -0400
David Zeuthen 17c4cc
+++ festival/speech_tools/config/compilers/gcc_defaults.mak	2007-03-16 13:30:11.000000000 -0400
David Zeuthen 17c4cc
@@ -78,7 +78,7 @@
David Zeuthen 17c4cc
 SHARED_LINKFLAGS = -fno-shared-data
David Zeuthen 17c4cc
 
David Zeuthen 17c4cc
 ifndef GCC_MAKE_SHARED_LIB
David Zeuthen 17c4cc
-    MAKE_SHARED_LIB = $(CXX) -shared -fno-shared-data -o XXX
David Zeuthen 17c4cc
+    MAKE_SHARED_LIB = $(CXX) -shared -fno-shared-data -o XXX -Wl,-soname,YYY
David Zeuthen 17c4cc
 else
David Zeuthen 17c4cc
     MAKE_SHARED_LIB = $(GCC_MAKE_SHARED_LIB)
David Zeuthen 17c4cc
 endif