• Re: pkg-config not returning linker flags -lpython3.12

    From Matthias Klose@21:1/5 to James Allwright on Thu Jan 9 11:30:01 2025
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)