ebitengine / purego

Apache License 2.0
1.94k stars 63 forks source link

Static linking on arm but dynamic on x86 #232

Open jhiemstrawisc opened 2 months ago

jhiemstrawisc commented 2 months ago

I noticed recently that compiling your libc example has different behavior on arm64 than it does on x86 -- on arm, it produces a static binary, but on x86 it's dynamically linked, even with CGO_ENABLED=0.

Is this intended? I initially observed similar behavior after using purego in another project, where my x86 go binaries broke because they switched from static to dynamic.

TotallyGamerJet commented 2 months ago

Which OS, go version, purego version are you using?

Amd64, and arm64 should be dynamically linked. How are you determining they are static?

TotallyGamerJet commented 1 month ago

@jhiemstrawisc is this still an issue? If not, I'd like to close it.