summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 63748e1..4ad2d1a 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -784,6 +784,10 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
AC_CHECK_LIB(dl, dlopen, have_dl=yes, have_dl=no)
+ # Require ranlib early so we can override it in special cases below.
+
+ AC_REQUIRE([AC_PROG_RANLIB])
+
# Step 3: set configuration options based on system name and version.
do64bit_ok=no
@@ -849,6 +853,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
do64bit_ok=yes
EXTRA_CFLAGS="-q64"
LDFLAGS="-q64"
+ RANLIB="${RANLIB} -X64"
+ AR="${AR} -X64"
+ SHLIB_LD_FLAGS="-b64"
fi
fi
;;
@@ -906,6 +913,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
do64bit_ok=yes
EXTRA_CFLAGS="-q64"
LDFLAGS="-q64"
+ RANLIB="${RANLIB} -X64"
+ AR="${AR} -X64"
+ SHLIB_LD_FLAGS="-b64"
fi
fi
;;
@@ -1665,8 +1675,6 @@ dnl AC_CHECK_TOOL(AR, ar, :)
UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
fi
- AC_REQUIRE([AC_PROG_RANLIB])
-
if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
LIB_SUFFIX=${SHARED_LIB_SUFFIX}
MAKE_LIB='${SHLIB_LD} -o [$]@ ${SHLIB_LD_FLAGS} ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'