pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl58 Default to building perl-thread on platfor...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b2de0037e41
branches:  trunk
changeset: 483493:1b2de0037e41
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Nov 12 23:29:34 2004 +0000

description:
Default to building perl-thread on platforms with native pthreads.
Perl-5.8.x and up are supposed to properly support pthreads if they're
available.  The GNU pth support isn't quite there yet, so we can't build
with thread support on all platforms.

diffstat:

 lang/perl58/Makefile |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 169412fb4d6d -r 1b2de0037e41 lang/perl58/Makefile
--- a/lang/perl58/Makefile      Fri Nov 12 23:27:46 2004 +0000
+++ b/lang/perl58/Makefile      Fri Nov 12 23:29:34 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2004/11/12 23:27:46 jlam Exp $
+# $NetBSD: Makefile,v 1.57 2004/11/12 23:29:34 jlam Exp $
 
 # The following two variables should have empty values unless we're
 # building a perl snapshot or release candidate.
@@ -149,10 +149,20 @@
 
 PERL5_HINTS_LDFLAGS+=  ${LOCLIBRPATHFLAGS}
 
+# On platforms that have native pthreads, default to installing the
+# threaded perl.  This can be overridden by explicitly setting
+# PERL5_USE_THREADS.
+#
+.if exists(/usr/include/pthread.h) && \
+    !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS])
+PERL5_USE_THREADS?=    yes
+.else
+PERL5_USE_THREADS?=    no
+.endif
+
 # If perl58 is built with threads support, then name the package
 # "perl-thread", otherwise it's just "perl" as usual.
 #
-PERL5_USE_THREADS?=    no
 .if !empty(PERL5_USE_THREADS:M[nN][oO])
 PERL5_PKGSUFFIX=       # empty
 CONFLICTS+=            perl-thread-[0-9]*



Home | Main Index | Thread Index | Old Index