From: Yann E. MORIN Date: Mon, 16 Mar 2015 16:31:25 +0000 (+0100) Subject: package/fftw: enable threads when the toolchain has them X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ce91aa31b0a2e8b1aa35079f293411042fe4e6c;p=buildroot.git 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 --- 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))