diff --git a/unix/mkpost.go b/unix/mkpost.go index ec31df2c5..5624847c6 100644 --- a/unix/mkpost.go +++ b/unix/mkpost.go @@ -24,7 +24,10 @@ import ( func main() { // Get the OS and architecture (using GOARCH_TARGET if it exists) - goos := os.Getenv("GOOS") + goos := os.Getenv("GOOS_TARGET") + if goos == "" { + goos = os.Getenv("GOOS") + } goarch := os.Getenv("GOARCH_TARGET") if goarch == "" { goarch = os.Getenv("GOARCH")