From b1692986818b5eebd6372f379d95c842c4647fc7 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Tue, 1 Apr 2003 12:29:12 +0000 Subject: Add a new `WITH_THREADS' option to build perl with support for threads and fix threaded build on 5.x. Approved by: maintainer --- lang/perl5.16/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lang/perl5.16/Makefile') diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile index ec6a3d6cd0bc..d2c14bf05ddd 100644 --- a/lang/perl5.16/Makefile +++ b/lang/perl5.16/Makefile @@ -51,6 +51,13 @@ CONFIGURE_ARGS+= -Dusemymalloc=y CONFIGURE_ARGS+= -Dusemymalloc=n .endif +.if defined(WITH_THREADS) +CONFIGURE_ARGS+= -Dusethreads=y +PKGNAMESUFFIX= -threaded +.else +CONFIGURE_ARGS+= -Dusethreads=n +.endif + INCLUDEDIR= /usr/include .include -- cgit v1.2.3