go: fix gcc6 build of bootstrap_go

This commit is contained in:
Juergen Buchmueller 2016-09-20 10:23:25 +02:00
parent 2a3757e0c1
commit 19c1c70e1a

View file

@ -2,7 +2,7 @@
pkgname=go
_bootstrap_version=1.4.2
version=1.7.1
revision=2
revision=3
wrksrc=go
hostmakedepends="git ca-certificates"
short_desc="The Go Programming Language"
@ -43,6 +43,10 @@ do_extract() {
tar -xf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/go${version}.src.tar.gz" \
-C "${XBPS_BUILDDIR}/go" --strip-components=1
# Fix a gcc6 warning regarding signed shift left
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/6c/txt.c \
-e's;f->vconst |= (vlong)~0 << 32;f->vconst = (vlong)(~0ull << 32);'
}
do_build() {