mirror of
https://git.rtems.org/rtems-tools/
synced 2025-06-06 06:49:29 +08:00
4.11/gdb: Fix detecting python when building GDB on FreeBSD 10.0.
This patch is from the FreeBSD 10.0 devel/gdb port and adds the LDFLAGS to link command line with Python enabled. Note, this may effect some hosts if there are library clashes.
This commit is contained in:
parent
f91e023fc4
commit
e959da9ef5
11
tools/4.11/gdb/patch-gdb-python-python-config.py
Normal file
11
tools/4.11/gdb/patch-gdb-python-python-config.py
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/python/python-config.py.orig 2013-10-17 11:24:52.000000000 +0200
|
||||
+++ gdb/python/python-config.py 2013-10-17 11:25:04.000000000 +0200
|
||||
@@ -59,6 +59,8 @@
|
||||
|
||||
elif opt in ('--libs', '--ldflags'):
|
||||
libs = []
|
||||
+ if getvar('LDFLAGS') is not None:
|
||||
+ libs.extend(getvar('LDFLAGS').split())
|
||||
if getvar('LIBS') is not None:
|
||||
libs.extend(getvar('LIBS').split())
|
||||
if getvar('SYSLIBS') is not None:
|
Loading…
x
Reference in New Issue
Block a user