openspecfun: actually set Fortran compiler name

This commit is contained in:
Schamschula
2025-07-09 08:34:35 +02:00
parent 09b9a261ef
commit 3fa5347168
+8 -1
View File
@@ -25,7 +25,14 @@ compilers.setup require_fortran
post-configure {
# openspecfun will definitely use a real compiler name, not gfortran.
set myf [fortran_compiler_name [fortran_variant_name]]
set myc [fortran_compiler_name [fortran_variant_name]]
if {[string match "gcc1*" $myc]} {
set myf gfortran-mp-[string range $myc 3 end]
} elseif {${myc} eq "gcc-devel"} {
set myf "gfortran-mp-devel"
} else {
set myf "g95"
}
reinplace "s|gfortran|$myf|" \
${worksrcpath}/Make.inc \