This patch is part of a series of patches for speech-tools for Debian GNU/Linux, which primarily fix build errors with GCC 4.3 and newer. Index: speech-tools/config/rules/library.mak =================================================================== --- speech-tools.orig/config/rules/library.mak 2011-02-16 11:03:11.000000000 -0600 +++ speech-tools/config/rules/library.mak 2011-02-16 20:01:11.000000000 -0600 @@ -102,15 +102,44 @@ ## ## ########################################################################### +libestools.so : libestools.a + echo Make Shared Library estools + if [ ! -d shared_space ] ; then mkdir shared_space ; else $(RM) -f shared_space/*.o ; fi + (cd shared_space ; $(AR) x ../$< ) + echo Link Shared Library estools + if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_estools)" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\ + $(subst YYY,$@.$(PROJECT_LIBRARY_VERSION_estools),\ + $(subst XXX,$@.$(PROJECT_VERSION),$(MAKE_SHARED_LIB))) \ + shared_space/*.o $(PROJECT_LIBRARY_USES_estools:%=-L. -l%) $$libs -L. -lestbase -leststring -lncurses + $(RM) -f shared_space/*.o $@ + -ln -sf $@.$(PROJECT_VERSION) $@.$(PROJECT_LIBRARY_VERSION_estools) + -ln -sf $@.$(PROJECT_LIBRARY_VERSION_estools) $@ + +libestbase.so : libestbase.a + echo Make Shared Library estbase + if [ ! -d shared_space ] ; then mkdir shared_space ; else $(RM) -f shared_space/*.o ; fi + (cd shared_space ; $(AR) x ../$< ) + echo Link Shared Library estbase + if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_estbase)" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\ + $(subst YYY,$@.$(PROJECT_LIBRARY_VERSION_estbase),\ + $(subst XXX,$@.$(PROJECT_VERSION),$(MAKE_SHARED_LIB))) \ + shared_space/*.o $(PROJECT_LIBRARY_USES_estbase:%=-L. -l%) $$libs -L. -lesd + $(RM) -f shared_space/*.o $@ + -ln -sf $@.$(PROJECT_VERSION) $@.$(PROJECT_LIBRARY_VERSION_estbase) + -ln -sf $@.$(PROJECT_LIBRARY_VERSION_estbase) $@ + lib%.so : lib%.a - @echo Make Shared Library $* - @if [ ! -d shared_space ] ; then mkdir shared_space ; else $(RM) -f shared_space/*.o ; fi - @(cd shared_space ; $(AR) x ../$< ) - @echo Link Shared Library $* + echo Make Shared Library $* + if [ ! -d shared_space ] ; then mkdir shared_space ; else $(RM) -f shared_space/*.o ; fi + (cd shared_space ; $(AR) x ../$< ) + echo Link Shared Library $* if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_$*)" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\ - $(subst XXX,$@.$(PROJECT_LIBRARY_VERSION_$*),$(MAKE_SHARED_LIB)) shared_space/*.o $(PROJECT_LIBRARY_USES_$*:%=-L. -l%) $$libs - @$(RM) -f shared_space/*.o $@ - @ln -s $@.$(PROJECT_LIBRARY_VERSION_$*) $@ + $(subst YYY,$@.$(PROJECT_LIBRARY_VERSION_$*),\ + $(subst XXX,$@.$(PROJECT_VERSION),$(MAKE_SHARED_LIB))) \ + shared_space/*.o $(PROJECT_LIBRARY_USES_$*:%=-L. -l%) $$libs + $(RM) -f shared_space/*.o $@ + -ln -sf $@.$(PROJECT_VERSION) $@.$(PROJECT_LIBRARY_VERSION_$*) + -ln -sf $@.$(PROJECT_LIBRARY_VERSION_$*) $@ ########################################################################### ## ##