openbsd-ports/devel/nspr/patches/patch-mozilla_nsprpub_configure_in

37 lines
1.2 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-mozilla_nsprpub_configure_in,v 1.1.1.1 2004/01/29 21:57:53 pvalchev Exp $
--- mozilla/nsprpub/configure.in.orig 2004-01-06 21:39:05.000000000 -0500
+++ mozilla/nsprpub/configure.in 2004-01-06 21:43:56.000000000 -0500
@@ -1483,6 +1483,7 @@ mips-sony-newsos*)
AC_DEFINE(XP_UNIX)
AC_DEFINE(OPENBSD)
AC_DEFINE(HAVE_BSD_FLOCK)
+ AC_DEFINE(HAVE_SOCKLEN_T)
CFLAGS="$CFLAGS -ansi -Wall"
CXXFLAGS="$CXXFLAGS -ansi -Wall"
DLL_SUFFIX=so.1.0
@@ -1490,12 +1491,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 +2176,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*)