Re: Statically link libwinpthread-1.dll in gdbserver

Claude Robitaille via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <DS7PR07MB76860D6D05E428EFBB92C13FF7C19@DS7PR07MB7686.namprd07.prod.outlook.com>
"make all-gdbserver" fails. But just make works, albeit a little longer...

So, I now have a solution thanks.

Just curious. --disable-foo is nice but the problem is to get a list of foo. Is there anyway other than sifting the script and metadata files?

./configure --help or ./configure --help-recursive are not that helpful.

________________________________
From: Pedro Alves <[email protected]>
Sent: May 2, 2022 9:37 AM
To: Claude Robitaille <[email protected]>; [email protected] <[email protected]>
Subject: Re: Statically link libwinpthread-1.dll in gdbserver

On 2022-05-02 14:33, Claude Robitaille wrote:
> Pedro Alves wrote:
> Have you tried passing "-static" in CFLAGS/CXXFLAGS?
>
> No. I did not try.
>
> But, if I do this on the top level configure command line, wouldn't then everything be statically linked? Is it possible to pass this falg only to the gdbserver configure command?

No, but you can use --disable-foo / --disable-foo to control which top level components
you want to build, and/or use "make all-gdbserver" to build just gdbserver.
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.