Building gdbserver

Claude Robitaille claude-robitaille@hotmail.com
Mon Apr 18 01:40:15 GMT 2022


What is the best way to link gdbserver statically?

I now the following configure command line

../binutils-gdb/configure --disable-shared --enable-static --with-static-standard-libraries --disable-gdb --host=x86_64-w64-mingw32


But I still have a dependency on libwinpthread-1.dll (and the Windows system DLL, which are OK).
________________________________
From: Claude Robitaille <claude-robitaille@hotmail.com>
Sent: April 17, 2022 3:40 PM
To: Shahab Vahedi <shahab.vahedi@gmail.com>; Claude Robitaille <claude-robitaille@hotmail.com>
Cc: Gdb <gdb@sourceware.org>
Subject: Re: Building gdbserver

Doing a full make worked.

I guess that a needed path gets added to the include argument list in some other tool.
________________________________
From: Gdb <gdb-bounces+claude=cbcr.me@sourceware.org> on behalf of Claude Robitaille via Gdb <gdb@sourceware.org>
Sent: April 17, 2022 2:07 PM
To: Shahab Vahedi <shahab.vahedi@gmail.com>
Cc: Gdb <gdb@sourceware.org>
Subject: Re: Building gdbserver

Same result.
________________________________
From: Shahab Vahedi <shahab.vahedi@gmail.com>
Sent: April 17, 2022 1:19 PM
To: Claude Robitaille <claude-robitaille@hotmail.com>
Cc: Gdb <gdb@sourceware.org>
Subject: Re: Building gdbserver

On Sun, Apr 17, 2022 at 03:12:37PM +0000, Claude Robitaille wrote:
> I get this:
>
> make[1]: Entering directory '/mnt/data/sbox/tools/gdbserver.build/gdbserver'
>   CXX    alloc.o
> In file included from ../../binutils-gdb/gdbserver/../gdbsupport/common-defs.h:197,
>                  from ../../binutils-gdb/gdbserver/../gdb/alloc.c:37:
> ../../binutils-gdb/gdbserver/../gdbsupport/gdb_locale.h:27:11: fatal error: libintl.h: No such file or directory
>    27 | # include <libintl.h>

Try adding "--disable-gdb" to the "configure" command.


Cheers,
Shahab


More information about the Gdb mailing list