--- libgo/go/syscall/exec_unix.go.orig 2020-03-04 19:30:03.000000000 +1100 +++ libgo/go/syscall/exec_unix.go 2020-09-08 16:10:03.102357000 +1000 @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix bsdsunix darwin dragonfly freebsd linux netbsd openbsd solaris // Fork, exec, wait, etc. @@ -212,7 +212,7 @@ return 0, err } - if (runtime.GOOS == "freebsd" || runtime.GOOS == "dragonfly") && len(argv[0]) > len(argv0) { + if (runtime.GOOS == "freebsd" || runtime.GOOS == "dragonfly" || runtime.GOOS == "bsdsunix") && len(argv[0]) > len(argv0) { argvp[0] = argv0p }