在 2025-02-10 15:31, Kirill Makurin 写道:
It seems defining variables like `{libname}_AR` has no effect if {libname} is defined as `LTLIBRARIES` target, libtool script just used AR set during configuration. This method works only with `LIBRARIES` targets.

The best I could achieve with `LTLIBRARIES = libpthread.la` is to record dependency on winpthreads.la in pthread.la.

I tried to experiment with libtool's --mode=execute hoping it would substitute .la with a library filename, but --mode=execute works only with executables.

I'm out of ideas about libtool now. Although I don't quite like the proposed patch as it seems over-complicated, if there's no other solution, it may be acceptable.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to