-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
pkg-config returning wrong data for static linking #2988
Comments
Right, that's something I overlooked when switching to cmake. CMakeListst.txt has two library targets, Unfortunately, I don't know of a good way to inform pkg-config that the static library has a different name. I don't think it has e.g. a I'm open to suggestions, as long as they're not variations on "drop the |
I'm no expert myself, but pkg-config has Libs.private which I think is what is needed in the .pc file.
and the output is
and
|
|
After reading up some more on pkg-config I think the only option is to have two .pc files: libuv.pc and libuv-static.pc |
You know, that's not a bad idea. Want to open a PR? |
Fixes: libuv#2988 PR-URL: libuv#2993 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
The cmake build creates a static library with the name libuv_a.a, but running with
pkg-config --static --libs libuv
returns -luv which then is not found by linker.The text was updated successfully, but these errors were encountered: