This avoids requiring linking against a potential dynamic C++
library.

This helps testing arm64ec, where the toolchain (and the C++ DLL
in PATH) may be regular native aarch64, but we test building and
executing arm64ec binaries.

Just passing "-static-libstdc++ -static-libgcc" would work as well.

Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-crt/testcases/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mingw-w64-crt/testcases/Makefile.am 
b/mingw-w64-crt/testcases/Makefile.am
index cfff1641d..6ebb7f6ba 100644
--- a/mingw-w64-crt/testcases/Makefile.am
+++ b/mingw-w64-crt/testcases/Makefile.am
@@ -64,6 +64,7 @@ testcase_progs = \
 
 tstmaincpp_SOURCES = tstmaincpp.cpp
 t_trycatch_SOURCES = t_trycatch.cpp
+t_trycatch_LDFLAGS = -static
 t_intrinc_CFLAGS = -std=c99
 
 if ENABLE_TESTS_UNICODE
-- 
2.43.0



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

Reply via email to