[RFC] Help python find its files
Doug Evans
dje@google.com
Mon Feb 8 20:05:00 GMT 2010
On Mon, Feb 8, 2010 at 11:56 AM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
> 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.
Amazing, or depressing, how I forget such things.
More information about the Gdb-patches
mailing list