summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-02-10 21:57:16 (GMT)
committernijtmans <nijtmans>2009-02-10 21:57:16 (GMT)
commit9968eece0a412b8035a5437db0e8c52723c94e7f (patch)
treeaa046ca5484f598f2b9685731edfbe6ede248b11 /unix/tcl.m4
parent23f46a304464683d61975cfe1622a61b52b2d86a (diff)
downloadtcl-9968eece0a412b8035a5437db0e8c52723c94e7f.zip
tcl-9968eece0a412b8035a5437db0e8c52723c94e7f.tar.gz
tcl-9968eece0a412b8035a5437db0e8c52723c94e7f.tar.bz2
fix [tcl-Bug 2502365] Building of head on HPUX is
broken when using the native CC.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m413
1 files changed, 8 insertions, 5 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 3c82975..bcd3611 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1268,24 +1268,27 @@ dnl AC_CHECK_TOOL(AR, ar)
])
AC_CHECK_LIB(dld, shl_load, tcl_ok=yes, tcl_ok=no)
AS_IF([test "$tcl_ok" = yes], [
+ SHLIB_CFLAGS="+z"
+ SHLIB_LD="ld -b"
SHLIB_LD_LIBS='${LIBS}'
DL_OBJS="tclLoadShl.o"
DL_LIBS="-ldld"
LDFLAGS="$LDFLAGS -Wl,-E"
CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
- LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
+ LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
LD_LIBRARY_PATH_VAR="SHLIB_PATH"
])
AS_IF([test "$GCC" = yes], [
SHLIB_LD='${CC} -shared'
+ SHLIB_LD_LIBS='${LIBS}'
+ LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
], [
CFLAGS="$CFLAGS -z"
- # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
- #CFLAGS="$CFLAGS +DAportable"
- SHLIB_CFLAGS="+z"
- SHLIB_LD="${CC} -b"
])
+ # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
+ #CFLAGS="$CFLAGS +DAportable"
+
# Check to enable 64-bit flags for compiler/linker
AS_IF([test "$do64bit" = "yes"], [
AS_IF([test "$GCC" = yes], [