From 29394d0921808a94a409f01eff49f681651de5d5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 17 Feb 2023 08:06:58 +0000 Subject: gentoo auto-resync : 17:02:2023 - 08:06:58 --- eclass/Manifest.gz | Bin 37512 -> 37512 bytes eclass/go-module.eclass | 9 ++++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index 7ed900794d3c..bbbeed66146e 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass index 08e9f267d0af..5703b4fd8810 100644 --- a/eclass/go-module.eclass +++ b/eclass/go-module.eclass @@ -65,6 +65,8 @@ case ${EAPI} in *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac +inherit multiprocessing + if [[ -z ${_GO_MODULE} ]]; then _GO_MODULE=1 @@ -100,7 +102,7 @@ export GOMODCACHE="${WORKDIR}/go-mod" # -modcacherw makes the build cache read/write # -v prints the names of packages as they are compiled # -x prints commands as they are executed -export GOFLAGS="-buildmode=pie -buildvcs=false -modcacherw -v -x" +export GOFLAGS="-buildvcs=false -modcacherw -v -x" # Do not complain about CFLAGS etc since go projects do not use them. QA_FLAGS_IGNORED='.*' @@ -349,6 +351,11 @@ go-module_setup_proxy() { # - Otherwise, if EGO_VENDOR is set, bail out. # - Otherwise do a normal unpack. go-module_src_unpack() { + if use amd64 || use arm || use arm64 || + ( use ppc64 && ! use big-endian ) || use s390 || use x86; then + GOFLAGS="-buildmode=pie ${GOFLAGS}" + fi + GOFLAGS="${GOFLAGS} -p=$(makeopts_jobs)" if [[ "${#EGO_SUM[@]}" -gt 0 ]]; then eqawarn "This ebuild uses EGO_SUM which is deprecated" eqawarn "Please migrate to a dependency tarball" -- cgit v1.2.3