summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-bo
blob: 3a3d4b1ab4f737a1029f69cf1430381f72c40ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-bo,v 1.1.1.1 2004/02/29 17:45:02 xtraeme Exp $

--- nsprpub/configure.in.orig	2004-02-27 15:03:10.000000000 +0900
+++ nsprpub/configure.in	2004-02-27 15:05:21.000000000 +0900
@@ -930,6 +930,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*)
@@ -2182,7 +2185,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