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

Use dynamic libusb on Linux #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use dynamic libusb on Linux #65

wants to merge 1 commit into from

Conversation

rhn
Copy link
Contributor

@rhn rhn commented Mar 31, 2020

Fedora uses libusbx, and doesn't come with a statically linked version.

Here's what the devel package has:

# rpm -ql libusbx-devel
/usr/include/libusb-1.0
/usr/include/libusb-1.0/libusb.h
/usr/lib64/libusb-1.0.so
/usr/lib64/pkgconfig/libusb-1.0.pc

pic32prog is not in Fedora at the moment, and while I don't know the reason, this is one roadblock.

I'm not sure that the library needs to be statically linked, so I hope this doesn't break anything.

Fedora uses libusbx, and doesn't come with a statically linked version.
@rhn
Copy link
Contributor Author

rhn commented Apr 9, 2020

I've noticed that a better change was applied:

#45

and then reverted already:

#50

Without this change, pic32prog will never be buildable or packageble in some modern Linux distributions. I was under the impression that the pkg-config check preserved static buildability when available, and dynamic linking in packages is not the original author's problem anyway.

What's an acceptable way to solve this problem?

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

Successfully merging this pull request may close these issues.

1 participant