static builds even with cgo and xorg deps #7
Labels
No Label
breakage/local
breakage/upstream
bug
duplicate
enhancement
help wanted
invalid
pertains/ci
pertains/go
pertains/nix
pertains/pre-commit
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Reference: wanderer/go-xkcdreader#7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
...would be nice as it would allow a single (statically linked) binary to be built/shipped (potentially).
approaches:
CFLAGS
andLDFLAGS
to pass to the pre-build phase (nix
)zig
- this has caveats (works well for "simple" packages such asgo-sqlite
mentioned in the post but not so much for this one)alright, even though there have apparently been attempts to solve this (be it without using Nix) even during the past few months, it looks like this issue cannot be solved using Zig or any other way to cross-compile because GLFW (and consequently
go-glfw
, which is Fyne's hard dependency) does not support (or endorse) static linking, at least with the current state of affairs.That not only means we're stuck with CGO, it also means we can only link dynamically, which is even worse.
Any further insights of any random internet passer-by would, of course, be appreciated.