mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
14 lines
344 B
Diff
14 lines
344 B
Diff
Let go decide when CGO is needed and when not.
|
|
|
|
--- a/build.go
|
|
+++ b/build.go
|
|
@@ -544,7 +544,7 @@ func setBuildEnvVars() {
|
|
os.Setenv("GOOS", goos)
|
|
os.Setenv("GOARCH", goarch)
|
|
os.Setenv("CC", cc)
|
|
- if os.Getenv("CGO_ENABLED") == "" {
|
|
+ if false && os.Getenv("CGO_ENABLED") == "" {
|
|
switch goos {
|
|
case "darwin", "solaris":
|
|
default:
|