From: Joel Brobecker <brobecker@adacore.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>,
gdb-patches@sourceware.org
Subject: Re: minor portability patches
Date: Tue, 21 Sep 2010 20:40:00 -0000 [thread overview]
Message-ID: <20100921184051.GA3063@adacore.com> (raw)
In-Reply-To: <m3lj6veyzv.fsf@fleche.redhat.com>
> Peter> When we build --with-python, IRIX 6.5 needed -lpthread, I don't know if
> Peter> this is the correct place to add that though.
>
> Me neither. I'm not sure how we handle static linking against python,
> or whether we even support it.
Unfortunately not. This forces a dependency on lpthread even when
it is not necessary (either Python is not built in, or Python is built
without thread support).
This should be handled at the python-config.py level. Something's
wrong, because the script is querying the sys and sysconfig modules
to get the list of libraries that libpython depends on:
What does the following script print with the Python you are using
to link GDB against?
| from distutils import sysconfig
| getvar = sysconfig.get_config_var
| getvar('LIBS')
| getvar('SYSLIBS')
The output should contain -lpthread if indeed libpython depends
on it (we haven't attempted to build GDB with Python on mips-irix
yet, but we build Python without thread support anyways).
--
Joel
next prev parent reply other threads:[~2010-09-21 18:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 19:59 Peter O'Gorman
2010-09-21 20:06 ` Tom Tromey
2010-09-21 20:40 ` Joel Brobecker [this message]
2010-09-21 20:50 ` Peter O'Gorman
2010-09-21 21:56 ` Joel Brobecker
2010-09-21 21:09 ` Peter O'Gorman
2010-09-22 16:15 ` Doug Evans
2010-09-23 22:03 ` Jan Kratochvil
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=20100921184051.GA3063@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@mlists.thewrittenword.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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