diff -Naur tk8.5a6.orig/unix/tcl.m4 tk8.5a6/unix/tcl.m4 --- tk8.5a6.orig/unix/tcl.m4 2007-04-27 06:02:27.000000000 +0900 +++ tk8.5a6/unix/tcl.m4 2007-07-21 02:47:58.000000000 +0900 @@ -1425,7 +1425,7 @@ # get rid of the warnings. #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" - SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' + SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}' DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="$LDFLAGS -Wl,--export-dynamic"