[Buildroot] [PATCH 6/7 v7] package/fftw: enable threads when the toolchain has them

Yann E. MORIN yann.morin.1998 at free.fr
Mon Mar 16 16:31:25 UTC 2015

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
[based on a patch by Guillaume]
Cc: guillaume william brs <guillaume.bressaix at gmail.com>
Cc: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>
Tested-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>
Reviewed-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>

Changes v6 -> v7:
  - generate a single library with thread support included (otherwise
    thread support is in another library)
  - fix typo in commit title
 package/fftw/fftw.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/fftw/fftw.mk b/package/fftw/fftw.mk
index 3acde57..aea3910 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
+FFTW_CONF_OPTS += --enable-threads --with-combined-threads
+FFTW_CONF_OPTS += --disable-threads
 $(eval $(autotools-package))

More information about the buildroot mailing list