在 2025-6-1 15:06, Kirill Makurin 写道:
diff --git a/mingw-w64-libraries/winpthreads/tests/Makefile.am 
b/mingw-w64-libraries/winpthreads/tests/Makefile.am
index 9dda82f73..74549952d 100644
--- a/mingw-w64-libraries/winpthreads/tests/Makefile.am
+++ b/mingw-w64-libraries/winpthreads/tests/Makefile.am
@@ -5,9 +5,13 @@ if !MSVC
  AM_LDFLAGS += -L$(top_builddir)/fakelib
  endif
-AM_LDFLAGS += -L$(top_builddir) -lwinpthread -static
+AM_LDFLAGS += -L$(top_builddir) -lwinpthread

Yes this use of `-lwinpthread` seems incorrect, because of the reason you've 
pointed out.

This seems a good reason to apply `*_LDADD = $(top_builddir)/libwinpthread.la` to every test program; however instead of doing that for each target, it's possible to apply it globally by default:

   LIBADD = $(top_builddir)/libwinpthread.la

can you try that?



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