--- tk8.5a5/unix/tcl.m4.5-cflags 2006-12-19 15:09:26.000000000 +0100 +++ tk8.5a5/unix/tcl.m4 2006-12-19 15:14:17.000000000 +0100 @@ -1398,7 +1398,7 @@ # get rid of the warnings. #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" - SHLIB_LD='${CC} -shared -Wl,-soname,${@}' + SHLIB_LD='${CC} ${CFLAGS} -shared -Wl,-soname,${@}' DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="$LDFLAGS -Wl,--export-dynamic" @@ -1428,7 +1428,7 @@ SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" - SHLIB_LD="${CC} -shared" + SHLIB_LD="${CC} ${CFLAGS} -shared" DL_OBJS="" DL_LIBS="-ldl" LDFLAGS="$LDFLAGS -Wl,--export-dynamic"