summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-03 21:20:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-03 21:20:20 (GMT)
commit71c15d876f2f5a31a2f6d761e31192dd365db45e (patch)
treee0acd3467438faae1700fcd24b177644ec905a12
parentec03772bad27bd87af2bb98f697ede5b5c6b5d07 (diff)
downloadtcl-71c15d876f2f5a31a2f6d761e31192dd365db45e.zip
tcl-71c15d876f2f5a31a2f6d761e31192dd365db45e.tar.gz
tcl-71c15d876f2f5a31a2f6d761e31192dd365db45e.tar.bz2
Missed a bit
-rw-r--r--unix/tcl.m45
1 files 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//`