public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Statically link libwinpthread-1.dll in gdbserver
@ 2022-05-02 12:11 Claude Robitaille
  2022-05-02 13:27 ` Pedro Alves
  0 siblings, 1 reply; 8+ messages in thread
From: Claude Robitaille @ 2022-05-02 12:11 UTC (permalink / raw)
  To: gdb

Hi,

I am trying to produce a statically linked gdbserver (except the distribution DLL from Windows). I have everything in except for libwinpthread-1.dll. I
guess gdbserver should be linked with libwinpthread.a but how to tell the build system to do so?

I am using this command line to configure:
../binutils-gdb/configure --enable-static --with-static-standard-libraries --disable-gdb --host=x86_64-w64-mingw32

and then followed by
make

Using objdump, I see that the following DLL are needed by the binary
KERNEL32.dll
msvcrt.dll
libwinpthread-1.dll
USER32.dll
WS2_32.dll

As you can see from the command line, I am using mingw-w64. I am using the stock Ubuntu 20.04 package for it, which includes the following library files for pthread
-rw-r--r-- 1 root root 388692 Nov 15  2019 libpthread.a
-rw-r--r-- 1 root root  88994 Nov 15  2019 libpthread.dll.a
-rwxr-xr-x 1 root root 621013 Nov 15  2019 libwinpthread-1.dll
-rw-r--r-- 1 root root 388692 Nov 15  2019 libwinpthread.a
-rw-r--r-- 1 root root  88994 Nov 15  2019 libwinpthread.dll.a



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-02 18:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 12:11 Statically link libwinpthread-1.dll in gdbserver Claude Robitaille
2022-05-02 13:27 ` Pedro Alves
2022-05-02 13:33   ` Claude Robitaille
2022-05-02 13:37     ` Pedro Alves
2022-05-02 17:12       ` Claude Robitaille
2022-05-02 17:18         ` Pedro Alves
2022-05-02 17:54           ` Claude Robitaille
2022-05-02 18:39             ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).