diff -Naurp tcl8.4.13.orig/unix/tcl.m4 tcl8.4.13/unix/tcl.m4 --- tcl8.4.13.orig/unix/tcl.m4 2006-12-11 20:01:59.000000000 -0600 +++ tcl8.4.13/unix/tcl.m4 2006-12-11 20:02:42.000000000 -0600 @@ -1340,7 +1340,7 @@ dnl AC_CHECK_TOOL(AR, ar) #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,\${TCL_LIB_FILE}" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="$LDFLAGS -Wl,--export-dynamic"