$OpenBSD: patch-mozilla_nsprpub_configure_in,v 1.3 2006/01/07 19:45:35 bernd Exp $ --- mozilla/nsprpub/configure.in.orig Tue Nov 25 01:09:04 2003 +++ mozilla/nsprpub/configure.in Sat Jan 7 19:51:07 2006 @@ -1483,19 +1483,18 @@ 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 + DLL_SUFFIX=so DSO_CFLAGS=-fPIC 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*)