Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] fftw: Disable combined threads when building with OpenMP support
@ 2016-06-22 17:00 André Hentschel
  2016-07-02 13:43 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: André Hentschel @ 2016-06-22 17:00 UTC (permalink / raw)
  To: buildroot

Otherwise fftw fails to configure:
configure: error: --with-combined-threads incompatible with --enable-openmp

Signed-off-by: Andr? Hentschel <nerv@dawncrow.de>
---
 package/fftw/fftw.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/fftw/fftw.mk b/package/fftw/fftw.mk
index 5045ab6..e89671f 100644
--- a/package/fftw/fftw.mk
+++ b/package/fftw/fftw.mk
@@ -31,7 +31,8 @@ FFTW_CFLAGS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),-mfpu=neon)
 
 # Generic optimisations
 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
-FFTW_CONF_OPTS += --enable-threads --with-combined-threads
+FFTW_CONF_OPTS += --enable-threads
+FFTW_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--without,--with)-combined-threads
 else
 FFTW_CONF_OPTS += --disable-threads
 endif
-- 
2.7.4

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

* [Buildroot] [PATCH v2] fftw: Disable combined threads when building with OpenMP support
  2016-06-22 17:00 [Buildroot] [PATCH v2] fftw: Disable combined threads when building with OpenMP support André Hentschel
@ 2016-07-02 13:43 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-02 13:43 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 22 Jun 2016 19:00:16 +0200, Andr? Hentschel wrote:
> Otherwise fftw fails to configure:
> configure: error: --with-combined-threads incompatible with --enable-openmp
> 
> Signed-off-by: Andr? Hentschel <nerv@dawncrow.de>
> ---
>  package/fftw/fftw.mk | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2016-07-02 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-22 17:00 [Buildroot] [PATCH v2] fftw: Disable combined threads when building with OpenMP support André Hentschel
2016-07-02 13:43 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox