Closed akkuman closed 9 months ago
Since trdsql uses go-sqlite3, it is built with cgo enabled. Therefore, it cannot be completely statically linked.
I hope it works with older versions of glibc (I'd love to know if there is a way). The current solution will definitely work if you build it in your own environment.
cgo can be statically linked, but it need toolchain of special platform. for example, linux need musl. I also used xgo cross-compile initially, but found that adding "-extldflags =-static" would not cross-compile to MacOS, so I switched to zig cc instead https://github.com/akkuman/rotateproxy/blob/master/.github/workflows/release.yml
Thank you for teaching me. I don't think it's right to change the binary right away. I will continue to consider.
I also changed the build environment to put binaries compatible with older libcs built with zig. https://github.com/noborus/trdsql/releases/download/v0.13.0-rc11/trdsql_v0.13.0-rc11_linux_old_amd64.zip A static link version can also be built, but it has not been fully confirmed yet.
I'll close it because it's resolved. If there are any problems, please reopen.
It depends on a particular version of glibc
my glibc info