summaryrefslogtreecommitdiff
path: root/www/mozilla
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-08-01 14:28:10 +0000
committerjlam <jlam@pkgsrc.org>2002-08-01 14:28:10 +0000
commitfadde8d730ad9144d5da04f1833394d00076a2dc (patch)
treeb75d9255700f035a018782bc125efe2a0205fb6e /www/mozilla
parent81db7a193e95c8d6f6bcba8119f2692162430675 (diff)
downloadpkgsrc-fadde8d730ad9144d5da04f1833394d00076a2dc.tar.gz
Fix so that mozilla doesn't require a native pthread library. "require"
comes from devel/glib/buildlink. devel/glib requires a pthread library but www/mozilla optionally wants a native pthread library. Checking for PTHREAD_TYPE != "native" will work, but we may want to consider expanding the capabilities of pthread.buildlink.mk to cover this scenario.
Diffstat (limited to 'www/mozilla')
-rw-r--r--www/mozilla/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/www/mozilla/Makefile b/www/mozilla/Makefile
index 2858443631f..7dd6510ebff 100644
--- a/www/mozilla/Makefile
+++ b/www/mozilla/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.94 2002/08/01 06:40:55 jlam Exp $
+# $NetBSD: Makefile,v 1.95 2002/08/01 14:28:10 jlam Exp $
MOZ_VER= 1.0
DISTNAME= mozilla-source-${MOZ_VER}
@@ -67,8 +67,6 @@ SCRIPTS_ENV+= BINGRP=${BINGRP}
SCRIPTS_ENV+= BINMODE=${BINMODE}
SCRIPTS_ENV+= SETENV=${SETENV}
-PTHREAD_OPTS+= native
-
.if ${MACHINE_ARCH} == "m68k"
DBG=
.else
@@ -95,7 +93,12 @@ do-install:
.include "../../mk/pthread.buildlink.mk"
-.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
+# This check isn't strictly correct. devel/glib requires a pthread library
+# but www/mozilla optionally wants a native pthread library. The following
+# will work, but we may want to consider expanding the capabilities of
+# pthread.buildlink.mk to cover this scenario.
+#
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} != "native")
CONFIGURE_ARGS+= --without-pthreads
.endif