Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libindi.pc doesn't provide any -l in Libs #2156

Open
DarthGandalf opened this issue Dec 24, 2024 · 0 comments
Open

libindi.pc doesn't provide any -l in Libs #2156

DarthGandalf opened this issue Dec 24, 2024 · 0 comments
Labels

Comments

@DarthGandalf
Copy link
Contributor

Describe the bug
The purpose of pkg-config is to tell build system of the client of the library what flags to pass to compiler in order to use the library. However, libindi.pc's Libs simply says Libs: -L${libdir}, resulting in undefined symbols in linker stage, unless the client also explicitly provides -lindiclient or such.

To Reproduce
Exact steps to reproduce the behavior.

  1. Run pkg-config --libs libindi
  2. See empty output

Expected behavior
It should return the list of libraries to link to.

Screenshots
If applicable, add screenshots to help explain your problem.
Выделение_643

Desktop (please complete the following information):

  • OS: Gentoo Linux
  • Version 2.1.1

In https://github.com/indilib/indi/blob/master/libindi.pc.cmake the libraries are supposed to come from @PKG_CONFIG_LIBS@, but cmake never sets this variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant