cmd/go: allow linker flag -Wl,--push-state,--as-needed #70023
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go1.23.2 linux/arm64
Output of
go env
in your module/workspace:What did you do?
Try to compile https://github.com/wasilibs/go-re2 in cgo mode linking to ubuntu 24.10 provided libre2-dev, which works in other ubuntu versions.
What did you see happen?
Failure with ld flag, which seems to be something new with the ubuntu 24.10 build chain / built packages.
https://github.com/wasilibs/go-re2/blob/d9666878a10b4e2eee30a133fa4673c1e56ee1dd/internal/cre2/cre2_re2_cgo.go#L6
What did you expect to see?
Tests pass.
The text was updated successfully, but these errors were encountered: