From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay02.ispgateway.de ([80.67.31.29]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WchhL-0003F9-6W for ptxdist@pengutronix.de; Tue, 22 Apr 2014 22:53:51 +0200 Received: from [84.169.222.217] (helo=ubuntuvm.fritz.box) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1WchhL-0006NY-GY for ptxdist@pengutronix.de; Tue, 22 Apr 2014 22:53:47 +0200 From: Bernhard Walle Date: Tue, 22 Apr 2014 22:53:43 +0200 Message-Id: <1398200023-10099-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH] perl: Make it possible to enable thread support Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Bernhard Walle --- rules/perl.in | 12 ++++++++++-- rules/perl.make | 4 +++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/rules/perl.in b/rules/perl.in index 6a226de..4823a3e 100644 --- a/rules/perl.in +++ b/rules/perl.in @@ -1,17 +1,25 @@ ## SECTION=scripting_languages -config PERL +menuconfig PERL tristate - prompt "perl" + prompt "perl " select LIBC_DL select LIBC_M select LIBC_CRYPT select GCCLIBS_GCC_S + select LIBC_PTHREAD if PERL_THREADS help Larry Wall's Practical Extraction and Report Language An interpreted scripting language, known among some as "Unix's Swiss Army Chainsaw". +if PERL + +config PERL_THREADS + bool "Enable threads" + +endif + menu "perl Extra Modules " source "generated/perl.in" endmenu diff --git a/rules/perl.make b/rules/perl.make index 86a0ff7..fe09089 100644 --- a/rules/perl.make +++ b/rules/perl.make @@ -65,7 +65,9 @@ PERL_CONF_OPT := \ --prefix=/usr \ --host=$(PTXCONF_GNU_TARGET) \ --target=$(PTXCONF_GNU_TARGET) \ - -Dld=$(CROSS_CC) + -Dld=$(CROSS_CC) \ + $(call ptx/ifdef, PTXCONF_PERL_THREADS, -Dusethreads, ) \ + $(call ptx/ifdef, PTXCONF_PERL_THREADS, -A ldflags=-pthread, ) PERL_MAKE_PAR := NO -- 1.9.1 -- ptxdist mailing list ptxdist@pengutronix.de