golang: do not rely on Go script host detection 18584/head
authorMichael Pratt <mcpratt@pm.me>
Fri, 27 May 2022 06:25:52 +0000 (02:25 -0400)
committerMichael Pratt <mcpratt@pm.me>
Fri, 27 May 2022 06:39:52 +0000 (02:39 -0400)
commitbb7c596028807bca6d9bc4c87e110560f2491a41
tree92b68501dac7ae502e653bf2bdea1b8b595ac476
parentb99164aff453fbb084b6ab94b78805a4ca6b2e3d
golang: do not rely on Go script host detection

for some use cases, for example:
a system with 64 bit kernel
and 32 bit userspace programs

the local Go installation is "detected"
using the kernel "uname",
causing build failure if they happen to differ

by adding the argument GOHOSTARCH using the corresponding make variable
it would be fully controlled in the openwrt git tree
based on the HOST_ARCH make variable.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
lang/golang/golang/Makefile