ora
ora copied to clipboard
Example of statically linking with oracle dlls?
Hi team, Not really an issue, but anyone tried building windows executable statically linking required oracle dll or libs? To put simply, build an executable that runs without the required dlls.
Thanks!
Hi,
Haven't tried it. No time for it actually. But would love to hear how it goes if you do try it!
Cheers
I don't have libclntsh.a available, so can't try. But I'd start with
go build --ldflags '-linkmode external -extldflags "-static"'
according to https://dominik.honnef.co/posts/2015/06/go-musl/ and http://blog.hashbangbash.com/2014/04/linking-golang-statically/.