golang: new packages

From golang.org:
The Go programming language is an open source project to make
programmers more productive.

This commit consists of two "parts":

* golang/host: Main Go compiler for host (installed to
  STAGING_DIR_HOST/lib/go-cross), used to cross-compile Go programs to
  be packaged.

* golang (and golang-src/golang-doc): Main Go compiler for on-target
  development. These packages are quite large, but I would expect only
  developers to install these.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
Jeffery To
2018-03-18 00:32:35 +08:00
parent a7060cea98
commit c137c38257
6 changed files with 869 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/sh
me=go-gcc-helper
name=$(basename $0)
case $name in
gcc)
cmd=$GO_GCC_HELPER_CC
;;
g++)
cmd=$GO_GCC_HELPER_CXX
;;
*)
echo "$me: unknown command \"$name\""
exit 1
;;
esac
export PATH="$GO_GCC_HELPER_PATH"
echo "$me: running $cmd $@"
$cmd "$@"