* bad library order returned by gdb/python/python-config.py
@ 2013-05-29 16:54 David Taylor
2013-05-30 15:51 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: David Taylor @ 2013-05-29 16:54 UTC (permalink / raw)
To: gdb
When linking, a library should be listed before the libraries that it
depends upon. With shared libraries, this is less important, but still
a good idea. With static libraries it matters.
The file gdb/python/python-config.py in the gdb 7.6 release lists the
python library *AFTER* the libraries that it depends upon. This causes
linkage errors during the configure phase of the build -- causing GDB to
not use python.
Here's a trivial unified diff patch.
Index: gdb/python/python-config.py
===================================================================
RCS file: /home/cvsroot/GDB/gdb/python/python-config.py,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 python-config.py
--- gdb/python/python-config.py 9 May 2013 19:00:17 -0000 1.1.1.1
+++ gdb/python/python-config.py 29 May 2013 16:46:38 -0000
@@ -59,11 +59,11 @@
elif opt in ('--libs', '--ldflags'):
libs = []
+ libs.append('-lpython'+pyver + abiflags)
if getvar('LIBS') is not None:
libs.extend(getvar('LIBS').split())
if getvar('SYSLIBS') is not None:
libs.extend(getvar('SYSLIBS').split())
- libs.append('-lpython'+pyver + abiflags)
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
# shared library in prefix/lib/.
if opt == '--ldflags':
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bad library order returned by gdb/python/python-config.py
2013-05-29 16:54 bad library order returned by gdb/python/python-config.py David Taylor
@ 2013-05-30 15:51 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2013-05-30 15:51 UTC (permalink / raw)
To: David Taylor; +Cc: gdb
>>>>> "David" == David Taylor <dtaylor@emc.com> writes:
David> Here's a trivial unified diff patch.
It seems reasonable to me.
It needs a ChangeLog entry.
Patches ordinarily go to gdb-patches.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-30 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 16:54 bad library order returned by gdb/python/python-config.py David Taylor
2013-05-30 15:51 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox