package/pkg-golang: enable trimpath option for reproducible builds
authorChristian Stewart <christian@paral.in>
Sat, 7 Dec 2019 19:57:07 +0000 (11:57 -0800)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 8 Dec 2019 07:40:48 +0000 (08:40 +0100)
commit687230730dfb2bab9a54506867786c0bd1b985f1
tree1c14834071ce6aca6b574b956756e244f463dc12
parent1f8709980123053dad84e462ba2bd719ac1be8e3
package/pkg-golang: enable trimpath option for reproducible builds

The -trimpath option (introduced in go 1.13) removes absolute build paths
from the target binary.  This results in more consistent / reproducible
builds across different systems with varying paths to Buildroot.

Signed-off-by: Christian Stewart <christian@paral.in>
[Peter: mention that this is a go 1.13+ feature]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-golang.mk