[Buildroot] [git commit] package/fftw: enable OpenMP if the compiler has that

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Mar 16 18:44:02 UTC 2015


commit: http://git.buildroot.net/buildroot/commit/?id=84183b3ec32723527434e93224e5914e2ab469bf
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 at free.fr>
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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/fftw/fftw.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/package/fftw/fftw.mk b/package/fftw/fftw.mk
index aea3910..1148909 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)"
 


More information about the buildroot mailing list