8000 openocd binary for Darwin/OSX is built against Homebrew-installed libusb · Issue #23 · sifive/cinco · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

openocd binary for Darwin/OSX is built against Homebrew-installed libusb #23

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

Open
nimblemachines opened this issue Apr 10, 2017 · 0 comments

Comments

@nimblemachines
Copy link
Contributor

The pre-built openocd binary (as of commit 9bab0782) for Darwin fails to work if the user doesn't have libusb installed in /usr/local/opt/.

otool -L openocd shows that it has been linked against libusb binaries in /usr/local/opt/, which suggests that the builder used Homebrew and hadn't "sanitized" the build environment to prevent these local-to-their-setup dependencies from creeping into the built binary.

Because the end user may not be using Homebrew, and may very well not have libusb installed, statically linking libusb (which isn't that big) into the binary seems like a simple solution, and will help to forestall confusion.

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

No branches or pull requests

1 participant
0