diff -udbBPr --exclude='*~' -ur tclx8.4-orig/tclconfig/tcl.m4 tclx8.4/tclconfig/tcl.m4 --- tclx8.4-orig/tclconfig/tcl.m4 2005-11-21 19:54:51.000000000 +0100 +++ tclx8.4/tclconfig/tcl.m4 2008-01-20 11:04:16.000000000 +0100 @@ -1332,7 +1332,7 @@ #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" if test "$have_dl" = yes; then - SHLIB_LD="${CC} -shared" + SHLIB_LD='${CC} -shared -Wl,-soname,${@}' DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="$LDFLAGS -Wl,--export-dynamic"