News for hackers. Stuff that matters.
Re:SQLite in Go, with and Without Cgo by oefrha on Friday May 13, 2022 @01:47PM (#31370525)
Except that’s at the very least broken for macOS -> Linux right now. I attempted to use zig cc as the cross compiler for sqlite3 the other day. Ran into https://github.com/ziglang/zig/issues/5882 https://github.com/ziglang/zig/issues/9485 an almost two-year-old issue.

Cross compiling C sucks.

Re:SQLite in Go, with and Without Cgo by AndyKelley on Friday May 13, 2022 @05:41PM (#31372808)
It is a bug, and we will fix it, but keep in mind the scope - this is something that affects old versions of glibc. Newer versions of glibc are not affected, and neither is musl libc (often preferable for cross compiling to Linux).

You can target a newer glibc like this: -target x86_64-linux-gnu.2.28

You can target musl libc like this: -target x86_64-linux-musl