Blame SOURCES/festival-1.96-bettersonamehack.patch

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