--- Yap-5.1.2.orig/Makefile.in 2007-06-21 01:45:42.000000000 +1200 +++ Yap-5.1.2/Makefile.in 2007-11-20 21:06:56.000000000 +1300 @@ -572,7 +572,7 @@ $(RANLIB) libYap.a @DYNYAPLIB@: $(LIB_OBJECTS) - @DYNLIB_LD@ -o @YAPLIB@ $(LIB_OBJECTS) $(LIBS) + @DYNLIB_LD@ -Wl,-soname=$@ -o @YAPLIB@ $(LIB_OBJECTS) $(LIBS) install: install_bin install_data