From: Paul Smith <psmith@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: simark@simark.ca, gdb@sourceware.org
Subject: Re: GDB 8.3.1 gdbserver linker error: needs -lrt
Date: Fri, 31 Jan 2020 17:23:00 -0000 [thread overview]
Message-ID: <e0a028ff0fecddd3be76e979583a2d47d071d1c5.camel@gnu.org> (raw)
In-Reply-To: <83r1zfk0kf.fsf@gnu.org>
On Fri, 2020-01-31 at 19:17 +0200, Eli Zaretskii wrote:
> > In this case, we need a new library to link gdbserver directly, not
> > because of some other package that gdbserver depends on, so we
> > don't have a package that might contain a pkg-config we could use.
>
> Sorry, I thought liblzma needed -lrt. Apologies if I was confused.
Oh I see the confusion.
No, you're absolutely right, liblzma DOES need -lrt. And indeed, we DO
use pkg-config to get info about liblzma.
And that's why linking of gdb itself succeeds: it links lzma with its
pkg-config options and that causes -lrt to be linked, as a side-effect.
However, I'm whinging about gdbserver (and libinproctrace.so), and
liblzma is not not linked into those, and so neither is -lrt.
next prev parent reply other threads:[~2020-01-31 17:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-30 21:23 Paul Smith
2020-01-30 21:35 ` Simon Marchi
2020-01-30 22:17 ` Paul Smith
2020-01-30 22:50 ` Simon Marchi
2020-01-31 7:44 ` Eli Zaretskii
2020-01-31 16:48 ` Paul Smith
2020-01-31 17:17 ` Eli Zaretskii
2020-01-31 17:23 ` Paul Smith [this message]
2020-02-01 3:05 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0a028ff0fecddd3be76e979583a2d47d071d1c5.camel@gnu.org \
--to=psmith@gnu.org \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=simark@simark.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox