[Buildroot] [PATCH] package/eigen: override Fortran path

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Aug 19 20:39:27 UTC 2021


On Thu, 19 Aug 2021 09:25:58 -0500
Matthew Weber via buildroot <buildroot at busybox.net> wrote:

> The language detection is falling back to the host system
> Fortran compiler. An example of this is in RHEL7.9
> (gcc4.8.5 20150623 (Red Hat 4.8.5-44)).
> 
> This patch bypasses detection and points to the location
> where the compiler would be installed (if present). In the
> cases where it doesn't exist, the detection falls through
> and leaves Fortran disabled.
> 
> Fixes:
> http://autobuild.buildroot.net/results/8354da225d1e5e337aa7ea62a7e6524fb5f1135f/
> 
> Signed-off-by: Matthew Weber <matthew.weber at collins.com>

Thanks for looking into this!

>  # Default Eigen CMake installs .pc file in /usr/share/pkgconfig
>  # change it to /usr/lib/pkgconfig, to be consistent with other packages.
> -EIGEN_CONF_OPTS = -DPKGCONFIG_INSTALL_DIR=/usr/lib/pkgconfig
> +EIGEN_CONF_OPTS = -DPKGCONFIG_INSTALL_DIR=/usr/lib/pkgconfig \
> +	-DCMAKE_Fortran_COMPILER=${TARGET_FC}

We use $(...) to reference make variables, not ${...}. This is reported
by "make check-package". I fixed that and applied to master. Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list