On 09.01.25 10:34, James Allwright wrote:
Hi package maintainers,
I have noticed that pkg-config in not returning the library I need to
link to for python.
pkg-config --libs python3
is returning nothing, when I expect
-lpython3
I think the problem is in file
/usr/lib/x86_64-linux-gnu/pkgconfig/python3.pc
and I believe the line Libs: should be
Libs: -lpython3
no, it should not. extensions are not linked against the lib. if you
want to embed python in a binary, you shuld use
pkg-config --libs python3-embed