macOS compiled binary runs in build folder, but reports killed: 9 when moved to /usr/local/bin
This was caused by kernel caching of previously signed binaries and my replacing those binaries with newly compiled binaries which weren't part of a signed package.
By deleting the existing binaries, rebooting the Mac to clear the kernel cache, and then recopying the new binaries into place, I sorted the issue.