Skip to content

Commit 612617d

Browse files
committed
Implement language_stdlib_only_link_flags() for ElbrusFortranCompiler
e2k's gfortran mimics the GNU one in this regard. Fixes numpy's f2py tests. (cherry picked from commit 3eaf128)
1 parent 8745cdc commit 612617d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mesonbuild/compilers/fortran.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ def get_options(self) -> 'MutableKeyedOptionDictType':
343343
def get_module_outdir_args(self, path: str) -> T.List[str]:
344344
return ['-J' + path]
345345

346+
def language_stdlib_only_link_flags(self) -> T.List[str]:
347+
# No need to add search paths here, because LCC ships everything
348+
# (C, C++, Fortran) and always knows where to look for its stuff
349+
return ['-lgfortran', '-lm']
350+
346351

347352
class G95FortranCompiler(FortranCompiler):
348353

0 commit comments

Comments
 (0)