How to help get raylib to compile to a static zig binary? #2
Replies: 1 comment 1 reply
-
When it comes to GUI applications on Linux, in practice you will need to do dynamic linking at some point. I don't know if this specific setup is optimal or if could be improved, but just beware of that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The upstream raylib repo has adopted a zig build which is great! But unfortunately it doesn't compile into a static binary. For example on my LMDE 6 machine using the X11 backend option (no wayland) I get this:
I can see in their build.zig there is quite a few other linked system libraries for other OS too.
I guess what I wanted to ask is how big of a job would it be to start forking all the upstream dependencies to this org and get them building using zig to static libraries? It's not clear to me because I don't even understand why vdso shows up as a system linked library because raylib doesn't link that? (must be one of raylibs dependencies has a dependency on vdso?)
Curious others thoughts on this and any information or breadcrumbs you can give to a enthusiastic but newer ziguana to help solve this problem
Beta Was this translation helpful? Give feedback.
All reactions