aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gdb/files/patch-gdb_python_python-config.py
blob: d3bfb30d22154af2d1bb6d02d2c6862c0c946d73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- gdb/python/python-config.py.orig	2021-07-03 10:41:10.000000000 -0700
+++ gdb/python/python-config.py	2021-09-16 14:01:52.807472000 -0700
@@ -65,6 +65,8 @@ for opt in opt_flags:
 
     elif opt in ("--libs", "--ldflags"):
         libs = ["-lpython" + pyver + abiflags]
+        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: