$NetBSD: patch-bo,v 1.3 2003/04/27 09:49:06 grant Exp $ --- nsprpub/configure.in.orig 20 Jan 2003 20:49:52 -0000 +++ nsprpub/configure.in 15 Apr 2003 14:51:35 -0000 @@ -929,6 +929,9 @@ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' MDCPUCFG_H=_freebsd.cfg PR_MD_CSRCS=freebsd.c + if test "$LIBRUNPATH"; then + DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" + fi ;; *-hpux*) @@ -2144,7 +2147,14 @@ _PTHREAD_LDFLAGS="-lc_r" fi ;; - *-openbsd*|*-bsdi*|*-netbsd*) + *-netbsd*) + AC_DEFINE(_REENTRANT) + AC_DEFINE(_THREAD_SAFE) + if test "$ac_cv_have_dash_pthread" = "yes"; then + _PTHREAD_LDFLAGS="-pthread" + fi + ;; + *-openbsd*|*-bsdi*) 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