From 050772120fa8d43533087c57c2a961bf54d6466e Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 17 Jul 2021 13:49:44 -0500 Subject: dev-lang/go: sync live Signed-off-by: William Hubbs --- dev-lang/go/go-9999.ebuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev-lang/go/go-9999.ebuild') 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" -- cgit v1.2.3-65-gdbad