go: fix gcc6 (i686) build
This commit is contained in:
parent
4aa7407914
commit
22e3ca6e59
1 changed files with 3 additions and 1 deletions
|
@ -44,9 +44,11 @@ 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
|
||||
# Fix gcc6 warnings 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);'
|
||||
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/8g/ggen.c \
|
||||
-e's;-1LL<<(t->width\*8-1);~0ULL<<(t->width*8-1);'
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in a new issue