commit:     050772120fa8d43533087c57c2a961bf54d6466e
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 17 18:49:44 2021 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Jul 17 18:50:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05077212

dev-lang/go: sync live

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-lang/go/go-9999.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild
index 9d3bb807e83..135a6fe19a9 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"

Reply via email to