dc071bd1b3
A number of regression tests fail though. ok pvalchev@
79 lines
2.2 KiB
Plaintext
79 lines
2.2 KiB
Plaintext
$OpenBSD: patch-configure,v 1.4 2001/10/08 09:21:38 matthieu Exp $
|
|
--- configure.orig Fri Apr 6 20:51:46 2001
|
|
+++ configure Sun Oct 7 02:52:49 2001
|
|
@@ -5112,13 +5112,23 @@
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
- # NetBSD/SPARC needs -fPIC, -fpic will not do.
|
|
- SHLIB_CFLAGS="-fPIC"
|
|
- SHLIB_LD="ld -Bshareable -x"
|
|
+ # OpenBSD/SPARC needs -fPIC, -fpic will not do.
|
|
+ case `machine` in
|
|
+ sparc*)
|
|
+ SHLIB_CFLAGS="-fPIC";;
|
|
+ *)
|
|
+ SHLIB_CFLAGS="-fpic";;
|
|
+ esac
|
|
+ SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
|
|
SHLIB_LD_LIBS=""
|
|
SHLIB_SUFFIX=".so"
|
|
DL_OBJS="tclLoadDl.o"
|
|
- DL_LIBS=""
|
|
+ case `arch -s` in
|
|
+ powerpc|sparc64)
|
|
+ DL_LIBS="-ldl";;
|
|
+ *)
|
|
+ DL_LIBS="";;
|
|
+ esac
|
|
LDFLAGS=""
|
|
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
|
echo $ac_n "checking for ELF""... $ac_c" 1>&6
|
|
@@ -5136,11 +5146,11 @@
|
|
egrep "yes" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
echo "$ac_t""yes" 1>&6
|
|
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.3'
|
|
else
|
|
rm -rf conftest*
|
|
echo "$ac_t""no" 1>&6
|
|
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.3'
|
|
|
|
fi
|
|
rm -f conftest*
|
|
@@ -5161,7 +5171,10 @@
|
|
|
|
fi
|
|
|
|
-
|
|
+ if test "$do64bit" = "yes" ; then
|
|
+ do64bit_ok=yes
|
|
+ fi
|
|
+
|
|
# FreeBSD doesn't handle version numbers with dots.
|
|
|
|
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
|
@@ -5848,10 +5861,9 @@
|
|
TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}"
|
|
eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
|
|
if test "x$DL_OBJS" = "xtclLoadAout.o"; then
|
|
- MAKE_LIB="ar cr \${TCL_LIB_FILE} \${OBJS}"
|
|
+ MAKE_LIB="ar cr \${TCL_LIB_FILE} \${OBJS}; \${RANLIB} \${TCL_LIB_FILE}"
|
|
else
|
|
MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
|
|
- RANLIB=":"
|
|
fi
|
|
else
|
|
case $system in
|
|
@@ -5935,7 +5947,7 @@
|
|
# Replace DBGX with TCL_DBGX
|
|
eval "STUB_LIB_FILE=\"${STUB_LIB_FILE}\""
|
|
|
|
-MAKE_STUB_LIB="ar cr \${STUB_LIB_FILE} \${STUB_LIB_OBJS}"
|
|
+MAKE_STUB_LIB="ar cr \${STUB_LIB_FILE} \${STUB_LIB_OBJS}; \${RANLIB} \${STUB_LIB_FILE}"
|
|
|
|
TCL_STUB_LIB_FILE=${STUB_LIB_FILE}
|
|
|