From 4ce91aa31b0a2e8b1aa35079f293411042fe4e6c Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Mon, 16 Mar 2015 17:31:25 +0100 Subject: [PATCH] package/fftw: enable threads when the toolchain has them Signed-off-by: "Yann E. MORIN" [based on a patch by Guillaume] Cc: guillaume william brs Cc: Gwenhael Goavec-Merou Tested-by: Gwenhael Goavec-Merou Reviewed-by: Gwenhael Goavec-Merou Signed-off-by: Thomas Petazzoni --- package/fftw/fftw.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/fftw/fftw.mk b/package/fftw/fftw.mk index 3acde57ca3..aea3910981 100644 --- a/package/fftw/fftw.mk +++ b/package/fftw/fftw.mk @@ -29,6 +29,13 @@ FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE2),--enable,--disable)-sse2 FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),--enable,--disable)-neon 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 +else +FFTW_CONF_OPTS += --disable-threads +endif + FFTW_CONF_OPTS += CFLAGS="$(FFTW_CFLAGS)" $(eval $(autotools-package)) -- 2.30.2