--- tcl8.5a6.orig/unix/tcl.m4 2007-04-27 02:33:51.000000000 +0900 +++ tcl8.5a6/unix/tcl.m4 2007-05-16 10:46:31.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"