-
Notifications
You must be signed in to change notification settings - Fork 42
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
libusb-config --libs is incorrect for static builds #15
Comments
@jameshilliard |
@tormodvolden and @Youw |
Yeah, I'm not really sure either.
For static only builds of libusb/libusb-compat it should be able to set the correct flags, not sure about on mixed builds however as libusb-config doesn't seem to have a way to split static vs non-static flags. I hacked around the issue like this in buildroot. |
I think it is better to use pkg-config when possible. On the other end, even with pkg-config it may not be easy to do correctly for static build. I can see we still need some manual process. Ref: some relevant discussions. |
I agree. So I will close this one. |
For those who use cross-compile, you can take reference from the following to build static library with libusb-1.0 and libusb-compat-0.1.
|
I'm not familiar with |
I will keep |
How much different is it from |
@jameshilliard |
I tend to think there are legacy projects which does not require the pkg-config. |
It's expected to be present by the apcupsd build system I think. |
I see this issue of missing flags for the libusb-1.0 dependency was already fixed for pkg-config here but was not ported to libusb-config. This issue results in the flags needed to statically link against libusb-1.0 being missing and compilation fails for any applications getting their
--libs
flags from libusb-config.The text was updated successfully, but these errors were encountered: