All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/pcre2: jit needs threads
@ 2019-04-16 15:29 Fabrice Fontaine
  2019-04-17  6:47 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2019-04-16 15:29 UTC (permalink / raw)
  To: buildroot

Add a BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS to be able to use it in the
comment

Fixes:
 - http://autobuild.buildroot.org/results/547be5264effaf27c7f85ece88c5f5f792abd910

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/pcre2/Config.in | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/package/pcre2/Config.in b/package/pcre2/Config.in
index 007dd960c6..f35877f376 100644
--- a/package/pcre2/Config.in
+++ b/package/pcre2/Config.in
@@ -23,12 +23,24 @@ config BR2_PACKAGE_PCRE2_32
 	  This option builds the 32-bits pcre2 library, i.e
 	  'libpcre2-32'
 
+config BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
+	bool
+	default y if BR2_aarch64
+	default y if BR2_arm || BR2_armeb
+	default y if BR2_i386 || BR2_x86_64
+	default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
+	default y if BR2_powerpc
+	default y if BR2_sparc
+
 config BR2_PACKAGE_PCRE2_JIT
 	bool "enable JIT support"
-	depends on BR2_i386 || BR2_x86_64 || BR2_arm  || BR2_armeb || \
-		BR2_aarch64 || BR2_mips || BR2_mipsel || \
-		BR2_mips64 || BR2_mips64el || BR2_powerpc || BR2_sparc
+	depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  This option enables JIT support
 
+comment "JIT support needs a toolchain w/ threads"
+	depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
 endif
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/pcre2: jit needs threads
  2019-04-16 15:29 [Buildroot] [PATCH 1/1] package/pcre2: jit needs threads Fabrice Fontaine
@ 2019-04-17  6:47 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-04-17  6:47 UTC (permalink / raw)
  To: buildroot

On Tue, 16 Apr 2019 17:29:15 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Add a BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS to be able to use it in the
> comment
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/547be5264effaf27c7f85ece88c5f5f792abd910
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/pcre2/Config.in | 18 +++++++++++++++---
>  1 file changed, 15 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-17  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 15:29 [Buildroot] [PATCH 1/1] package/pcre2: jit needs threads Fabrice Fontaine
2019-04-17  6:47 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.