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@collins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 9f591542452f2af2bb333dc24b34e85f6921ece4) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
22 lines
779 B
Makefile
22 lines
779 B
Makefile
################################################################################
|
|
#
|
|
# eigen
|
|
#
|
|
################################################################################
|
|
|
|
EIGEN_VERSION = 3.3.7
|
|
EIGEN_SOURCE = eigen-$(EIGEN_VERSION).tar.bz2
|
|
EIGEN_SITE = $(call gitlab,libeigen,eigen,$(EIGEN_VERSION))
|
|
EIGEN_LICENSE = MPL2, BSD-3-Clause, LGPL-2.1
|
|
EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README
|
|
EIGEN_INSTALL_STAGING = YES
|
|
EIGEN_INSTALL_TARGET = NO
|
|
EIGEN_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
# 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 \
|
|
-DCMAKE_Fortran_COMPILER=$(TARGET_FC)
|
|
|
|
$(eval $(cmake-package))
|