This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Help python find its files
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 8 Feb 2010 14:56:29 -0500
- Subject: Re: [RFC] Help python find its files
- References: <20100208192942.D971F84415@ruffy.mtv.corp.google.com>
On Mon, Feb 08, 2010 at 11:29:42AM -0800, Doug Evans wrote:
> Hi.
>
> We had problems with python not being able to find its files.
> This may be specific to installations where gdb and python
> are installed in different places.
>
> 2010-02-08 Doug Evans <dje@google.com>
>
> * configure.ac (--with-python): Define WITH_PYTHON_PATH if
> --with-python arg is a path.
> * config.in: Regenerated.
> * configure: Regenerated.
> * python/python.c (_initialize_python): If configured
> --with-python=/path, pass a fake argv[0] to Py_SetProgramName so
> python can find its files.
I suspect this patch will break relocatability. --with-python is a
path on the build system (for -I and -L), not a path on the host
system.
--
Daniel Jacobowitz
CodeSourcery