在 2025-12-20 22:19, Luca Bacci 写道:
Hello,

I want to add a test to mingw-w64-crt/testcases which needs a custom DLL. How 
can I do that with Automake?

I have tried setting up libtool, however convenience libraries are built as 
static library archives: 
https://stackoverflow.com/questions/5578919/explanation-sought-libtool-automake-shared-libraries-and-fortran

If you mean to link a test program against a system DLL, add it in `_LDADD` 
like this one:

   testcases_tstwinmain_LDADD = -lgdi32

If you mean to link a test program against a DLL that needs to be built, then there's likely no easy way in libtool. You can write a Makefile recipe by hand.


--
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