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

Linking in WSL uses system libraries #21

Closed
mimed95 opened this issue Feb 26, 2023 · 2 comments
Closed

Linking in WSL uses system libraries #21

mimed95 opened this issue Feb 26, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mimed95
Copy link

mimed95 commented Feb 26, 2023

When attempting to adjust linking paths of libraries such as OpenSSL or libcrypto under WSL Ubuntu 22.04 with the "-L" flag the build will use the system libraries instead of the provided ones by the development environment.

@aaronmondal aaronmondal self-assigned this Feb 27, 2023
@aaronmondal
Copy link
Contributor

Using -L for paths like /usr/lib would probably override all the nix dependencies, potentially linking incompatible libc etc. As temporary workaround I think passing the explicit path to nonhermetic dependencies in link_flags should work.

Technically the current behavior is WAI, but I can see how this can be confusing. I've added extensibility for the flakes so that project-specific dependencies can be loaded via the nix store.

@aaronmondal aaronmondal added the documentation Improvements or additions to documentation label Feb 27, 2023
@aaronmondal
Copy link
Contributor

Should be resolved by e19d31f and 70da306.

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

No branches or pull requests

2 participants