aboutsummaryrefslogtreecommitdiff
path: root/package/fftw
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2015-03-16 17:31:25 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-16 19:44:02 +0100
commit4ce91aa31b0a2e8b1aa35079f293411042fe4e6c (patch)
tree839b3ffe3b297da594ad2c2ef4417a9b2ffbb020 /package/fftw
parent10ce987aa5f5dc9a4a3c5cd8fda60431a7a79772 (diff)
downloadbuildroot-4ce91aa31b0a2e8b1aa35079f293411042fe4e6c.tar.gz
buildroot-4ce91aa31b0a2e8b1aa35079f293411042fe4e6c.tar.bz2
package/fftw: enable threads when the toolchain has them
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [based on a patch by Guillaume] Cc: guillaume william brs <guillaume.bressaix@gmail.com> Cc: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Tested-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Reviewed-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/fftw')
-rw-r--r--package/fftw/fftw.mk7
1 files changed, 7 insertions, 0 deletions
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))