]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Keep "-lmingwex" and "-lmoldname" in linker flags for MinGW
authorMarkus Mützel <markus.muetzel@gmx.de>
Sun, 5 Jan 2025 18:14:19 +0000 (18:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Jan 2025 22:02:15 +0000 (14:02 -0800)
commit9ff9c567b1a7a7e66fa6523d4ceff142b86bddaa
tree1c079de5a9478c6ca5986b9cb71be8019e184976
parent059e5fc473b60edebcab2e030e8707f367fb80ee
Keep "-lmingwex" and "-lmoldname" in linker flags for MinGW

It is needed when building Octave targeting Windows. Without it, the
implementation of "casin" from the Windows runtime is used instead of
the replacement from MinGW-w64.  That means that results for the
"casin" function are wrong without that change.
* lib/autoconf/fortran.m4: Do not remove "-lmingwex" or "-lmoldname"
from the linker flags when targeting MinGW.  Removing "-lmingwex" causes
an incorrect linker resolution for functions like "casin" for projects
that consist of Fortran and C++ sources.  Removing "-lmoldname" causes
issues for Fortran projects that try to use POSIX-like C functions
without a '_' symbol prefix when targeting MinGW.
lib/autoconf/fortran.m4