summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-17 08:06:58 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-17 08:06:58 +0000
commit29394d0921808a94a409f01eff49f681651de5d5 (patch)
tree93d18027cb4ea68a3c967602c5793af032180bab /eclass
parent5987fa693ef880163ebde423615a177cb5bda20e (diff)
gentoo auto-resync : 17:02:2023 - 08:06:58
Diffstat (limited to 'eclass')
-rw-r--r--eclass/Manifest.gzbin37512 -> 37512 bytes
-rw-r--r--eclass/go-module.eclass9
2 files changed, 8 insertions, 1 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz
index 7ed900794d3c..bbbeed66146e 100644
--- a/eclass/Manifest.gz
+++ b/eclass/Manifest.gz
Binary files 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"