Closed
Description
PureGo Version
v0.8.2
Operating System
- Windows
- macOS
- Linux
- FreeBSD
- NetBSD
- Android
- iOS
Go Version (go version
)
go version go1.23.9 darwin/arm64
What steps will reproduce the problem?
Try to build this program as GOARCH=amd64:
package main
import (
_ "github.com/ebitengine/purego"
)
func main() {
}
% GOOS=darwin GOARCH=amd64 go1.23.9 build .
# github.com/ebitengine/purego/examples/test
link: duplicated definition of symbol dlopen, from github.com/ebitengine/purego and github.com/ebitengine/purego
What is the expected result?
The build succeeds
What happens instead?
The build fails
Anything else you feel useful to add?
See also golang/go#73617