Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #16674
| From | Matthias Klose <doko@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: pkg-config not returning linker flags -lpython3.12 |
| Date | 2025-01-09 11:30 +0100 |
| Message-ID | <K2XXz-6RtS-1@gated-at.bofh.it> (permalink) |
| References | <K2XXz-6RtS-3@gated-at.bofh.it> <K2XXz-6RtS-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.debian.maint.python | Previous | Next | Find similar
Re: pkg-config not returning linker flags -lpython3.12 Matthias Klose <doko@debian.org> - 2025-01-09 11:30 +0100
csiph-web