diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-13 22:59:17 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-22 14:52:02 -0500 |
commit | b2bb4573fb54cf4f0c7193a6ab75df64de0eced9 (patch) | |
tree | 2dfdb534a38a61168647d40f7b5bd0229ced7008 /docs/genrefman.py | |
parent | cedbf5db2c96dcd80287bc7d0d16a5af9afb6f7f (diff) | |
download | meson-b2bb4573fb54cf4f0c7193a6ab75df64de0eced9.zip meson-b2bb4573fb54cf4f0c7193a6ab75df64de0eced9.tar.gz meson-b2bb4573fb54cf4f0c7193a6ab75df64de0eced9.tar.bz2 |
python dependency: fix embed handling for system dependency
Only search for and provide linkage to libpython, if the dependency
expects to be linked to it. Fixes overlinking on Linux / macOS when
pkg-config isn't installed and the sysconfig lookup is used instead.
This was correctly handled for pkg-config rather than deferring it until
use, since commit bf832743441a1171518d7a436164c989be679410 -- but that
handling neglected to cover sysconfig dependencies. And sysconfig would
always try to link to libpython, it just respected the dependency
configuration barely enough to allow falling back to "don't link" if
both link_libpython=False and the library wasn't found.
(cherry picked from commit d3148efe4f469412fbd1d7771b36e3082467979d)
[backported to apply pre-code move]
# Conflicts:
# mesonbuild/dependencies/python.py
Diffstat (limited to 'docs/genrefman.py')
0 files changed, 0 insertions, 0 deletions