From: Daniel Jacobowitz <drow@false.org>
To: David Highley <dhighley@highley-recommended.com>
Cc: gdb@sources.redhat.com
Subject: Re: GDB problem with statically linked application
Date: Tue, 20 Sep 2005 19:14:00 -0000 [thread overview]
Message-ID: <20050920191408.GA27365@nevyn.them.org> (raw)
In-Reply-To: <200509201908.j8KJ838m017649@douglas.highley-recommended.com>
On Tue, Sep 20, 2005 at 12:08:03PM -0700, David Highley wrote:
> I see that you have fallen into the same compiler trap we have just
> discovered. It appears to never be correct to use the flag "-lpthread"
> when using the compiler. You should always use "-pthread". This flag is
> used in the preprocessor to turn on different code generation and the
> reentrancy options. But....
Sorry, but welcome to the modern world. On most platforms -pthread
does nothing useful except -lpthread. It also defines -D_REENTRANT,
and on GNU/Linux this flag does nothing at all.
On some other operating systems (Solaris maybe?) it does more. In that
case using -pthread is correct, or defining the relevant options (found
in the system documentation) yourself.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-09-20 19:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-20 18:50 Ajay Patel
2005-09-20 19:08 ` David Highley
2005-09-20 19:14 ` Daniel Jacobowitz [this message]
[not found] <1127244795.20581@horse.he.net>
2005-09-20 19:53 ` David Highley
2005-09-20 19:59 ` Daniel Jacobowitz
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=20050920191408.GA27365@nevyn.them.org \
--to=drow@false.org \
--cc=dhighley@highley-recommended.com \
--cc=gdb@sources.redhat.com \
/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