diff --git a/src/runtime/cgo_musl_linux.go b/src/runtime/cgo_musl_linux.go deleted file mode 100644 index 470dfd64173..00000000000 --- a/src/runtime/cgo_musl_linux.go +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2024 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build linux - -package runtime - -import "unsafe" - -//go:linkname _cgo_is_musl _cgo_is_musl -var _cgo_is_musl unsafe.Pointer diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go index b6ad4a49504..3995db43e7f 100644 --- a/src/runtime/os_linux.go +++ b/src/runtime/os_linux.go @@ -368,6 +368,9 @@ func goenvs() { goenvs_unix() } +//go:linkname _cgo_is_musl _cgo_is_musl +var _cgo_is_musl unsafe.Pointer + // Called to do synchronous initialization of Go code built with // -buildmode=c-archive or -buildmode=c-shared. // None of the Go runtime is initialized.