This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: minor portability patches
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Peter O'Gorman <gdb-patches at mlists dot thewrittenword dot com>, gdb-patches at sourceware dot org
- Date: Tue, 21 Sep 2010 11:40:51 -0700
- Subject: Re: minor portability patches
- References: <20100921164814.GC32745@tw.local> <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