diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-13 22:59:17 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-02-22 10:32:09 -0800 |
commit | 456d8962f3a8097ce8c2576ad5e345c3ff510fa2 (patch) | |
tree | 4dd92dd255d3b1946d9265177ad3ff033d952219 /mesonbuild/compilers/compilers.py | |
parent | b5d842305e025a6aa965b9c1d073c723e01e141b (diff) | |
download | meson-456d8962f3a8097ce8c2576ad5e345c3ff510fa2.zip meson-456d8962f3a8097ce8c2576ad5e345c3ff510fa2.tar.gz meson-456d8962f3a8097ce8c2576ad5e345c3ff510fa2.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.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
0 files changed, 0 insertions, 0 deletions