golang: Use new -trimpath option when compiling Go packages
authorJeffery To <jeffery.to@gmail.com>
Fri, 13 Sep 2019 09:28:42 +0000 (17:28 +0800)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sat, 28 Sep 2019 22:42:22 +0000 (00:42 +0200)
commit2c829c973b94de7cfbe269168173ef2cae0adca6
tree049a129e48b494e3d23429cb5076cca4adc8c415
parentc7f1bdc5922e35b48748ed3f542aa14ad8ffc426
golang: Use new -trimpath option when compiling Go packages

Go 1.13 added a new -trimpath option to the "go build" command[1] that
removes system paths from compiled executables. This replaces the
previous -trimpath flags.

There are still system paths in the compiled executable (for crti.o and
crtn.o, when cross-compiling); these appear to be stripped during the
packaging process.

[1]: https://golang.org/doc/go1.13#trimpath

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry-picked from commit 22ee6e86a08d1e59608c50495d25e49378174e5a)
lang/golang/golang-package.mk
lang/golang/golang-values.mk