summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-07-17 13:49:44 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-07-17 13:50:00 -0500
commit050772120fa8d43533087c57c2a961bf54d6466e (patch)
treef9221503fda43a74ed92171844bae564b55230ca /dev-lang/go/go-9999.ebuild
parentnet-misc/putty: Security bump to version 0.76 (diff)
downloadgentoo-050772120fa8d43533087c57c2a961bf54d6466e.tar.gz
gentoo-050772120fa8d43533087c57c2a961bf54d6466e.tar.bz2
gentoo-050772120fa8d43533087c57c2a961bf54d6466e.zip
dev-lang/go: sync live
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-lang/go/go-9999.ebuild')
-rw-r--r--dev-lang/go/go-9999.ebuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild
index 9d3bb807e833..135a6fe19a98 100644
--- a/dev-lang/go/go-9999.ebuild
+++ b/dev-lang/go/go-9999.ebuild
@@ -31,6 +31,7 @@ HOMEPAGE="https://golang.org"
LICENSE="BSD"
SLOT="0/${PV}"
+IUSE="cpu_flags_x86_sse2"
BDEPEND="|| (
dev-lang/go
@@ -114,7 +115,7 @@ src_compile() {
fi
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
- export GOROOT="$(pwd)"
+ export GOROOT="${PWD}"
export GOBIN="${GOROOT}/bin"
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
@@ -126,9 +127,8 @@ src_compile() {
export GOOS=$(go_os)
export CC_FOR_TARGET=$(tc-getCC)
export CXX_FOR_TARGET=$(tc-getCXX)
- if [[ ${ARCH} == arm ]]; then
- export GOARM=$(go_arm)
- fi
+ use arm && export GOARM=$(go_arm)
+ use x86 && export GO386=$(usex cpu_flags_x86_sse2 '' 'softfloat')
cd src
bash -x ./make.bash || die "build failed"