39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
$OpenBSD: patch-mozilla_nsprpub_configure_in,v 1.2 2004/10/25 09:02:53 wilfried Exp $
|
|
--- mozilla/nsprpub/configure.in.orig Tue Nov 25 01:09:04 2003
|
|
+++ mozilla/nsprpub/configure.in Fri Oct 22 16:14:35 2004
|
|
@@ -1483,6 +1483,9 @@ mips-sony-newsos*)
|
|
AC_DEFINE(XP_UNIX)
|
|
AC_DEFINE(OPENBSD)
|
|
AC_DEFINE(HAVE_BSD_FLOCK)
|
|
+ AC_DEFINE(HAVE_SOCKLEN_T)
|
|
+ AC_DEFINE(_PR_HAVE_GETPROTO_R)
|
|
+ AC_DEFINE(_PR_HAVE_GETPROTO_R_INT)
|
|
CFLAGS="$CFLAGS -ansi -Wall"
|
|
CXXFLAGS="$CXXFLAGS -ansi -Wall"
|
|
DLL_SUFFIX=so.1.0
|
|
@@ -1490,12 +1493,8 @@ mips-sony-newsos*)
|
|
MDCPUCFG_H=_openbsd.cfg
|
|
PR_MD_CSRCS=openbsd.c
|
|
USE_NSPR_THREADS=1
|
|
- case "$OS_TEST" in
|
|
- alpha|mips|pmax)
|
|
- DSO_LDOPTS=-shared ;;
|
|
- *)
|
|
- DSO_LDOPTS=-Bshareable ;;
|
|
- esac
|
|
+ DSO_LDOPTS='-shared -fPIC'
|
|
+ MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
|
|
;;
|
|
|
|
*-openvms*)
|
|
@@ -2179,7 +2178,8 @@ if test -n "$USE_PTHREADS"; then
|
|
AC_DEFINE(_THREAD_SAFE)
|
|
dnl -pthread links in -lc_r, so don't specify it explicitly.
|
|
if test "$ac_cv_have_dash_pthread" = "yes"; then
|
|
- _PTHREAD_LDFLAGS=
|
|
+ _PTHREAD_LDFLAGS=-pthread
|
|
+ LDFLAGS="${_PTHREAD_LDFLAGS} ${LDFLAGS}"
|
|
fi
|
|
;;
|
|
*-linux*)
|