openbsd-ports/mail/mozilla-thunderbird/patches/patch-nsprpub_configure_in
2004-02-15 19:41:58 +00:00

37 lines
1.1 KiB
Plaintext

$OpenBSD: patch-nsprpub_configure_in,v 1.2 2004/02/15 19:41:58 wilfried Exp $
--- nsprpub/configure.in.orig 2004-02-10 20:56:23.000000000 +0100
+++ nsprpub/configure.in 2004-02-10 20:57:42.000000000 +0100
@@ -1482,6 +1482,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
@@ -1489,12 +1490,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*)
@@ -2186,7 +2183,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*)