fix gdb installation (#15679)
* fix gdb installation * add reference url
This commit is contained in:
parent
2828815a49
commit
0ebed5a618
@ -670,6 +670,11 @@ def libs(self):
|
|||||||
# to ask Python where its LIBDIR is.
|
# to ask Python where its LIBDIR is.
|
||||||
libdir = self.get_config_var('LIBDIR')
|
libdir = self.get_config_var('LIBDIR')
|
||||||
|
|
||||||
|
# In Ubuntu 16.04.6 and python 2.7.12 from the system, lib could be
|
||||||
|
# in LBPL
|
||||||
|
# https://mail.python.org/pipermail/python-dev/2013-April/125733.html
|
||||||
|
libpl = self.get_config_var('LIBPL')
|
||||||
|
|
||||||
# The system Python installation on macOS and Homebrew installations
|
# The system Python installation on macOS and Homebrew installations
|
||||||
# install libraries into a Frameworks directory
|
# install libraries into a Frameworks directory
|
||||||
frameworkprefix = self.get_config_var('PYTHONFRAMEWORKPREFIX')
|
frameworkprefix = self.get_config_var('PYTHONFRAMEWORKPREFIX')
|
||||||
@ -679,6 +684,8 @@ def libs(self):
|
|||||||
|
|
||||||
if os.path.exists(os.path.join(libdir, ldlibrary)):
|
if os.path.exists(os.path.join(libdir, ldlibrary)):
|
||||||
return LibraryList(os.path.join(libdir, ldlibrary))
|
return LibraryList(os.path.join(libdir, ldlibrary))
|
||||||
|
elif os.path.exists(os.path.join(libpl, ldlibrary)):
|
||||||
|
return LibraryList(os.path.join(libpl, ldlibrary))
|
||||||
elif os.path.exists(os.path.join(frameworkprefix, ldlibrary)):
|
elif os.path.exists(os.path.join(frameworkprefix, ldlibrary)):
|
||||||
return LibraryList(os.path.join(frameworkprefix, ldlibrary))
|
return LibraryList(os.path.join(frameworkprefix, ldlibrary))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user