在 2025-02-09 19:10, LIU Hao 写道:
    libpthread_a_AR = ${LIBTOOL} --tag=CCLD --mode=link -static  \
                              $(LN_S) libwinpthread.la libpthread.la

    libpthread_dll_a_AR = ${LIBTOOL} --tag=CCLD --mode=link  \
                              $(LN_S) libwinpthread.la libpthread.la

The point is that if libtool sees libtool libraries (.la files) on the command line, it will replace those arguments with paths to 'real' libraries (.a or .dll files), which ensures you get correct paths to either libwinpthread.dll.a or winpthread.lib. I hope you can figure out the correct values for `--tag` and `--mode` yourself.

I think that, in this way we can declare libpthread.la in LTLIBRARIES; it will be unnecessary to have separate rules to copy the static library and shared library, since libtool will run the same command respectively.


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