This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Help python find its files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]