Replies: 1 comment
-
Hi @tylerjl! Normally I'd expect to see |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey hey! I'm running into issues trying to statically compile against a musl target that has
openssl-sys
as part of its dependency tree.I've set the suggested flags and options per the helpful examples, so I'm halfway there and know that cargo is trying to make a static compilation happen:
...and my toolchain has musl as an additional target. The issue is that when it comes time to build the
openssl-sys
crate (which is deeper in my dependency tree as a dependency of another crate), I'm stuck at the following error:I suppose this error makes sense - the crate is trying to find a static library for
ssl
and not finding it. Per the typical way to do this, I previously had the normal versions ofopenssl
andpkg-config
listed as inputs to the derivation, but in an effort to provide the staticssl
library, the following doesn't seem to help either:Any ideas? I've also tried doing weird stuff like instantiating my crane lib with something like
(crane.mkLib pkgs.pkgsMusl)
but that doesn't seem to do it either.This may be something more related to nix and cargo in general, but I'm hoping that there may be something here that I may be overlooking.
Beta Was this translation helpful? Give feedback.
All reactions