Skip to contentSkip to conversation

fftw: Disable combined threads when building with OpenMP support

PATCH New André Hentschel 2 participants 2 messages Jun 22, 2016 – Jul 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 fftw: Disable combined threads when building with OpenMP support

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

---
 package/fftw/fftw.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/fftw/fftw.mk +2 -1
index 5045ab6..e89671f 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 fftw: Disable combined threads when building with OpenMP support

Hello,

Quoted 7 lines · Andr? Hentschel

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

---
 package/fftw/fftw.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

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