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] |
On Fri, May 21, 2010 at 9:25 AM, Tom Tromey <tromey@redhat.com> wrote: >>>>>> "Doug" == Doug Evans <dje@google.com> writes: > > Doug> 2010-05-20 ?Doug Evans ?<dje@google.com> > Doug> ? ? ? ? * configure.ac: For non-canadian-cross builds (build == host), > Doug> ? ? ? ? try to use python-config to get python include and lib parameters. > Doug> ? ? ? ? * configure: Regenerate. > > It seems reasonable to me. I've learned that "python-config", which is a python script, can be pretty much used with any recent python version. I've also learned that it's not always spelled "python-config" when installed. This version of the patch provides our own copy in python/python-config.py. [NOTE: I didn't name it py-config.py on purpose. It doesn't violate the 8.3 file name rule, and since there already is python-internal.h spelled the way it is, I wanted to keep the spelling close to the public name.] This version runs python-config.py with the specified copy of python. Note that it can also work in a cross-compilation environment if the user provides his/her own script that mimics what `python python-config.py --includes|--ldflags' does. I will let it soak until tomorrow. 2010-05-24 Doug Evans <dje@google.com> * configure.ac: Try to use python's distutils to fetch compilation parameters. * configure: Regenerate. * python/python-config.py: New file.
Attachment:
gdb-100524-python-config-3.patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |