summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1999-02-04 21:00:29 (GMT)
committerstanton <stanton@noemail.net>1999-02-04 21:00:29 (GMT)
commit74031c765eec94486769dc40fd3bca04d62917a3 (patch)
tree6ce0320d1183cb09e5cc7d8ee5582608c58af60b /unix
parent5d366fdb236cbfdcd61f766a5ec198a01ed60b51 (diff)
downloadtk-74031c765eec94486769dc40fd3bca04d62917a3.zip
tk-74031c765eec94486769dc40fd3bca04d62917a3.tar.gz
tk-74031c765eec94486769dc40fd3bca04d62917a3.tar.bz2
* unix/configure.in: TK_LD_SEARCH_FLAGS was set incorrectly if
SHLIB_LD_LIBS='${LIBS}', and shared linking is performed through the C compiler. Systems affected are Linux, MP-RAS and NEXTSTEP, but also with gcc on many more systems. [Bug: 908] FossilOrigin-Name: 07b33ec61caac44cf0234121529468ce8c65e19e
Diffstat (limited to 'unix')
-rw-r--r--unix/configure.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/unix/configure.in b/unix/configure.in
index 3546419..aed841d 100644
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tk installation
dnl to configure the system for the local environment.
AC_INIT(../generic/tk.h)
-# RCS: @(#) $Id: configure.in,v 1.25 1999/01/29 00:32:40 rjohnson Exp $
+# RCS: @(#) $Id: configure.in,v 1.26 1999/02/04 21:00:29 stanton Exp $
TK_VERSION=8.0
TK_MAJOR_VERSION=8
@@ -267,7 +267,18 @@ fi
# variable LIB_RUNTIME_DIR.
eval "TK_CC_SEARCH_FLAGS=\"$TCL_LD_SEARCH_FLAGS\""
-TK_LD_SEARCH_FLAGS=`echo ${TK_CC_SEARCH_FLAGS} |sed -e "s|-Wl,||g" -e "s|,| |g"`
+
+# The following case handles the differences between linking with "ld"
+# and the compiler
+
+case $SHLIB_LD in
+ *ld*)
+ TK_LD_SEARCH_FLAGS=`echo ${TK_CC_SEARCH_FLAGS} |sed -e "s|-Wl,||g" -e "s|,| |g"`
+ ;;
+ *)
+ TK_LD_SEARCH_FLAGS="${TK_CC_SEARCH_FLAGS}"
+ ;;
+esac
#--------------------------------------------------------------------
# Check for the existence of various libraries. The order here