go: fix gcc6 build of bootstrap_go
This commit is contained in:
parent
2a3757e0c1
commit
19c1c70e1a
1 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
pkgname=go
|
pkgname=go
|
||||||
_bootstrap_version=1.4.2
|
_bootstrap_version=1.4.2
|
||||||
version=1.7.1
|
version=1.7.1
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc=go
|
wrksrc=go
|
||||||
hostmakedepends="git ca-certificates"
|
hostmakedepends="git ca-certificates"
|
||||||
short_desc="The Go Programming Language"
|
short_desc="The Go Programming Language"
|
||||||
|
@ -43,6 +43,10 @@ do_extract() {
|
||||||
|
|
||||||
tar -xf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/go${version}.src.tar.gz" \
|
tar -xf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/go${version}.src.tar.gz" \
|
||||||
-C "${XBPS_BUILDDIR}/go" --strip-components=1
|
-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() {
|
do_build() {
|
||||||
|
|
Loading…
Reference in a new issue