golang: Use new -trimpath option when compiling Go packages 9981/head
authorJeffery To <jeffery.to@gmail.com>
Fri, 13 Sep 2019 09:28:42 +0000 (17:28 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 13 Sep 2019 09:48:40 +0000 (17:48 +0800)
commit22ee6e86a08d1e59608c50495d25e49378174e5a
tree1fd3cb1007b71eda4d21dfa5f4ea3d7ab1074a5d
parenta1057cea1fb895a732a6854f79d53a763c722ef7
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>
lang/golang/golang-package.mk
lang/golang/golang-values.mk