Re: Building gdbserver

Claude Robitaille via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <DS7PR07MB76868C37DF91DB21F4C90618F7F39@DS7PR07MB7686.namprd07.prod.outlook.com>
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 <[email protected]>
Sent: April 17, 2022 3:40 PM
To: Shahab Vahedi <[email protected]>; Claude Robitaille <[email protected]>
Cc: Gdb <[email protected]>
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 <[email protected]> on behalf of Claude Robitaille via Gdb <[email protected]>
Sent: April 17, 2022 2:07 PM
To: Shahab Vahedi <[email protected]>
Cc: Gdb <[email protected]>
Subject: Re: Building gdbserver

Same result.
________________________________
From: Shahab Vahedi <[email protected]>
Sent: April 17, 2022 1:19 PM
To: Claude Robitaille <[email protected]>
Cc: Gdb <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.