ora icon indicating copy to clipboard operation
ora copied to clipboard

Example of statically linking with oracle dlls?

Open crisarceramos opened this issue 9 years ago • 2 comments

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!

crisarceramos avatar Oct 21 '15 13:10 crisarceramos

Hi,

Haven't tried it. No time for it actually. But would love to hear how it goes if you do try it!

Cheers

rana avatar Oct 21 '15 17:10 rana

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/.

tgulacsi avatar Jan 05 '17 13:01 tgulacsi