[Buildroot] [git commit] package/fftw: add fortran support

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jul 3 14:58:11 UTC 2016


commit: https://git.buildroot.net/buildroot/commit/?id=a4b65e1900edeceef2ec2a820e0ccd6f585916ad
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
Signed-off-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com>
[Thomas: pass FLIBS explicitly to help the configure script.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/fftw/fftw.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/fftw/fftw.mk b/package/fftw/fftw.mk
index e89671f..5bd39a8 100644
--- a/package/fftw/fftw.mk
+++ b/package/fftw/fftw.mk
@@ -10,7 +10,13 @@ FFTW_INSTALL_STAGING = YES
 FFTW_LICENSE = GPLv2+
 FFTW_LICENSE_FILES = COPYING
 
-FFTW_CONF_OPTS = --disable-fortran
+# fortran support only enables generation and installation of fortran sources
+ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
+FFTW_CONF_OPTS += --enable-fortran
+FFTW_CONF_ENV += FLIBS="-lgfortran -lm"
+else
+FFTW_CONF_OPTS += --disable-fortran
+endif
 
 FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_PRECISION_SINGLE),--enable,--disable)-single
 FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_PRECISION_LONG_DOUBLE),--enable,--disable)-long-double


More information about the buildroot mailing list