From 71c15d876f2f5a31a2f6d761e31192dd365db45e Mon Sep 17 00:00:00 2001 From: dkf Date: Sun, 3 Jan 2010 21:20:20 +0000 Subject: Missed a bit --- unix/tcl.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 4f62e7b..98b2f8e 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1590,8 +1590,9 @@ dnl AC_CHECK_TOOL(AR, ar) DL_OBJS="tclLoadDl.o" DL_LIBS="" LDFLAGS="" - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' - LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' + AS_IF([test $doRpath = yes], [ + CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' + LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}']) AS_IF([test "${TCL_THREADS}" = "1"], [ # The -pthread needs to go in the LDFLAGS, not LIBS LIBS=`echo $LIBS | sed s/-pthread//` -- cgit v0.12