summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/fftw/fftw.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/fftw/fftw.mk b/package/fftw/fftw.mk
index 5045ab6fed..e89671f9e2 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
OpenPOWER on IntegriCloud