X-Git-Url: https://repo.jachan.dev/binutils.git/blobdiff_plain/9a27f2c60d760a95a27e336750f26f69f91dd156..fd3ba736db19d4c7cd928f3735329339a8c8ef47:/gdb/python/python-config.py diff --git a/gdb/python/python-config.py b/gdb/python/python-config.py index c2b2969c39..3e60b86a6f 100644 --- a/gdb/python/python-config.py +++ b/gdb/python/python-config.py @@ -58,12 +58,11 @@ for opt in opt_flags: print (to_unix_path(' '.join(flags))) elif opt in ('--libs', '--ldflags'): - libs = [] + libs = ['-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':