From 722f17337c58ae8e77b8de9b40069a142ae9af82 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sat, 2 Mar 2024 21:47:50 +0000 Subject: [PATCH] BLD: Handle lsame consistently Also add a TODO for later --- lapack-netlib/INSTALL/meson.build | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lapack-netlib/INSTALL/meson.build b/lapack-netlib/INSTALL/meson.build index f922257e6..25824afa7 100644 --- a/lapack-netlib/INSTALL/meson.build +++ b/lapack-netlib/INSTALL/meson.build @@ -7,17 +7,22 @@ prec = get_option('realkind') build_single = get_option('build_single') build_double = get_option('build_double') -build_complex = get_option('build_complex') -build_complex16 = get_option('build_complex16') build_all_prec = get_option('build_all_prec') use_c_lapack = get_option('use_c_lapack') # C / Fortran _install_aux_srcs = [] +_ia_linkwith = [] if not use_c_lapack _int_cpu_srcs = [] # Fortran only _install_aux_srcs += ['ilaver.f'] + _ia_linkwith = _allblas # Includes lsame.f + # TODO: Delete the one in install in favor of the one from BLAS + # The meson build uses the BLAS variant anyway + # lsame.f is the same modulo formatting changes as the one in blas/src/lsame.f + # lsame.f claims to be from lapack 3.7.0 and has more whitespace but is + # otherwise identical to the reference from blas 3.1 if prec == 'd' or build_double or build_all_prec _int_cpu_srcs += [ @@ -44,7 +49,7 @@ if not use_c_lapack soversion: lapack_major_version, install: true) else - _install_aux_srcs += ['ilaver.c'] + _install_aux_srcs += ['ilaver.c', 'lsame.c'] if prec == 'd' or build_double or build_all_prec _install_aux_srcs += [ @@ -61,7 +66,8 @@ else endif _install_aux = library('_install_aux', - sources: install_aux_srcs, + sources: _install_aux_srcs, + link_with: _ia_linkwith, version: lapack_version, soversion: lapack_major_version, install: true)