> 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

Thanks! I was able to accomplish that using a plain make target

Best Regards,
Luca
________________________________
Da: LIU Hao
Inviato: Sabato, 20 Dicembre, 2025 16:13
A: [email protected]; Luca Bacci
Oggetto: Re: [Mingw-w64-public] Adding a helper DLL to mingw-w64-crt testsuite

在 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

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

Reply via email to