aboutsummaryrefslogtreecommitdiff
path: root/package/fftw
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2015-03-16 17:31:26 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-16 19:44:02 +0100
commit84183b3ec32723527434e93224e5914e2ab469bf (patch)
tree291773358279ced9502be7663532ff3e1e5e4369 /package/fftw
parent4ce91aa31b0a2e8b1aa35079f293411042fe4e6c (diff)
downloadbuildroot-84183b3ec32723527434e93224e5914e2ab469bf.tar.gz
buildroot-84183b3ec32723527434e93224e5914e2ab469bf.tar.bz2
package/fftw: enable OpenMP if the compiler has that
Unfortunately, this is limited to internal toolchains; we currently have no way to know if an external toolchain has support for OpenMP. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> 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.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/fftw/fftw.mk b/package/fftw/fftw.mk
index aea3910981..11489096fa 100644
--- a/package/fftw/fftw.mk
+++ b/package/fftw/fftw.mk
@@ -35,6 +35,7 @@ FFTW_CONF_OPTS += --enable-threads --with-combined-threads
else
FFTW_CONF_OPTS += --disable-threads
endif
+FFTW_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--enable,--disable)-openmp
FFTW_CONF_OPTS += CFLAGS="$(FFTW_CFLAGS)"