42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
$OpenBSD: patch-configure,v 1.3 2002/02/05 22:33:49 pvalchev Exp $
|
|
--- configure.orig Mon Mar 8 23:51:26 1999
|
|
+++ configure Tue Feb 5 16:06:42 2002
|
|
@@ -4095,16 +4095,21 @@ rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
-
|
|
- SHLIB_CFLAGS="-fpic"
|
|
- SHLIB_LD="ld -Bshareable -x"
|
|
+
|
|
+ case `machine` in
|
|
+ sparc|sparc64)
|
|
+ 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=""
|
|
LD_FLAGS=""
|
|
LD_SEARCH_FLAGS=""
|
|
- TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
|
|
+ TCL_SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.5'
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
@@ -4656,10 +4661,9 @@ if test "$tcl_ok" = "yes" -a "${SHLIB_SU
|
|
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
|
|
TCL_SHARED_BUILD=0
|