Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions go.be0
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env beesh

# BEE_VERSION go-1.10-0
# BEE_VERSION go-1.10.2-0

SRCURL[0]="https://storage.googleapis.com/golang/go1.4-bootstrap-20170531.tar.gz"
SRCURL[0]="https://storage.googleapis.com/golang/go1.4-bootstrap-20171003.tar.gz"
SRCURL[1]="https://redirector.gvt1.com/edgedl/go/go${PKGVERSION}.src.tar.gz"

# PATCHURL+=()
Expand All @@ -17,7 +17,7 @@ mee_extract() {
# extract bootstrap version of go-1.4 to arbitrary location
mkdir ${S}/bootstrap
bee_extract_do_tar "${1}" ${S}/bootstrap --strip-components 1
shift
shift
bee_extract "${@}"
}

Expand All @@ -27,19 +27,23 @@ mee_extract() {

#mee_configure() {
# bee_configure
#}
#}mee_install()

mee_build() {

cd ${S}/../bootstrap/src

# https://github.com/golang/go/issues/16906 "cannot load DWARF output ..."
CGO_ENABLED=0 \
CFLAGS='-Wno-implicit-fallthrough -Wno-shift-negative-value' \
./make.bash

echo "---- bootstrap built ----"
cd ${S}

export GOROOT_BOOTSTRAP=${S}/../bootstrap
export GOROOT_FINAL=${LIBDIR}/go

./make.bash
./make.bash --no-clean
}


Expand All @@ -62,7 +66,7 @@ mee_install() {
fmt html internal log os regexp strconv syscall time vendor"

echo "LIBS=${LIBS}"

mkdir -p ${D}${LIBDIR}/go/src
for i in $LIBS; do
cp -r ${S}/${i} ${D}${LIBDIR}/go/src
Expand Down