在 2025-8-26 18:00, Martin Storsjö 写道:
Currently, the global AM_CFLAGS used for building mingw-w64-crt
also applies when trying to build the tests. These flags force
a specific static CRT configuration, while the tests should
test the toolchain's default configuration.

This sounds a bit counterintuitive, does it? I don't see `-nostdlib` anywhere in tests, so I'm assuming that test programs are linked against the installed CRT, instead of the built CRT; and only after the built CRT is installed, can issues in it be discovered.

It would be more straightforward if tests are linked against the built CRT, with `-nostdlib` and all libraries and object files linked explicitly, so tests should test the built CRT, instead of the installed, default CRT.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to