Page MenuHomeFreeBSD

Mk/Uses/go.mk: Better ARM support
ClosedPublic

Authored by dmgk on Apr 12 2019, 8:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 10:49 AM
Unknown Object (File)
Fri, Apr 5, 10:47 PM
Unknown Object (File)
Jan 20 2024, 11:18 PM
Unknown Object (File)
Jan 10 2024, 12:22 PM
Unknown Object (File)
Dec 21 2023, 11:44 AM
Unknown Object (File)
Dec 20 2023, 8:06 AM
Unknown Object (File)
Sep 25 2023, 3:11 PM
Unknown Object (File)
Aug 16 2023, 12:04 PM

Details

Summary

This is a companion patch for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221297

  • If not set explicitly by the port, set CGO_ENABLED=1. CGO_ENABLED already defaults to 1 on all supported archs except ARM [1], so this change effectively just enables it on ARM.
  • If not set explicitly by the port, set GOARM from ARCH for ARM archs.

[1] https://github.com/golang/go/blob/master/src/cmd/dist/build.go#L1486

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

LGTM, but do we know the reason why CGO is not enabled on arm by default by upstream ?

LGTM, but do we know the reason why CGO is not enabled on arm by default by upstream ?

I asked in the PR - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221297#c27. I also think it is just an upstream oversight at this point.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 24 2019, 4:26 PM
This revision was automatically updated to reflect the committed changes.