Permalink
Newer
100755
85 lines (60 sloc)
1.99 KB
5
SRCURL[0]="https://storage.googleapis.com/golang/go1.4-bootstrap-20171003.tar.gz"
6
SRCURL[1]="https://redirector.gvt1.com/edgedl/go/go${PKGVERSION}.src.tar.gz"
7
8
# PATCHURL+=()
9
10
# EXCLUDE+=()
11
12
build_in_sourcedir
13
14
sourcesubdir_append src
15
16
mee_extract() {
17
# extract bootstrap version of go-1.4 to arbitrary location
18
mkdir ${S}/bootstrap
19
bee_extract_do_tar "${1}" ${S}/bootstrap --strip-components 1
23
24
#mee_patch() {
25
# bee_patch "${@}"
26
#}
27
28
#mee_configure() {
29
# bee_configure
35
36
# https://github.com/golang/go/issues/16906 "cannot load DWARF output ..."
37
CGO_ENABLED=0 \
38
CFLAGS='-Wno-implicit-fallthrough -Wno-shift-negative-value' \
42
cd ${S}
43
44
export GOROOT_BOOTSTRAP=${S}/../bootstrap
45
export GOROOT_FINAL=${LIBDIR}/go
51
# The binaries expect /scratch/local/bee-root/go/go-1.10-0/source to be copied or moved to /usr/lib/go
52
mkdir -p ${D}${BINDIR}
53
54
cp -r ${S}/../bin/. ${D}${BINDIR}
55
56
mkdir -p ${D}${LIBDIR}/go
57
58
# strace -s 200 -e file ${S}/../bin/go install -buildmode=shared std
62
LIBS="builtin context debug expvar go image io math \
63
path runtime strings testing unicode bufio bytes \
64
compress crypto encoding flag hash index mime net plugin reflect \
65
sort sync text unsafe archive cmd container database errors \
76
mkdir -p ${D}${LIBDIR}/go/pkg
77
cp -r ${S}/../pkg/tool ${D}${LIBDIR}/go/pkg
78
cp -r ${S}/../pkg/include ${D}${LIBDIR}/go/pkg
79
cp -r ${S}/../pkg/linux_amd64 ${D}${LIBDIR}/go/pkg