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

Static builds + install target broken on Unix #5

Closed
szellmann opened this issue Nov 10, 2021 · 1 comment
Closed

Static builds + install target broken on Unix #5

szellmann opened this issue Nov 10, 2021 · 1 comment

Comments

@szellmann
Copy link
Contributor

When building the project statically and then installing to CMAKE_INSTALL_PREFIX, on Unix the anchoring logic that determines where to search for libanari_device_XXX.so will base the search path off the folder that the executables are located in (i.e., bin) and thus won't find the actual device library (which is installed to lib). Therefore, static builds currently only work when being used from the build tree.

@jeffamstutz
Copy link
Contributor

Closing this as it is expected behavior -- the library anchoring search path checks the binary which the anchor is defined, where if it is static it will necessarily be the executable that linked libanari.a. Using LD_LIBRARY_PATH will still function, though, as well any RPATH injected by the linking executable.

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

2 participants