From 29f54379d1e148818098da9b3139c21ce9e74e68 Mon Sep 17 00:00:00 2001 From: Jakub Čajka Date: Feb 15 2017 21:43:01 +0000 Subject: pie is not supported on ppc64 --- diff --git a/go-compilers.spec b/go-compilers.spec index e320fa4..7629add 100644 --- a/go-compilers.spec +++ b/go-compilers.spec @@ -1,6 +1,6 @@ Name: go-compilers Version: 1 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Go language compilers for various architectures Group: Development/Tools License: GPLv3+ @@ -71,6 +71,9 @@ install -m 644 -D %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.gcc-go %endif %changelog +* Wed Feb 15 2017 Jakub Čajka - 1-11 +- pie is not supported on ppc64 + * Fri Feb 10 2017 Fedora Release Engineering - 1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/macros.golang-compiler b/macros.golang-compiler index 5cf9d68..be4ba75 100644 --- a/macros.golang-compiler +++ b/macros.golang-compiler @@ -7,7 +7,12 @@ # Define commands for building # BUILD_ID can be generated for golang build no matter of debuginfo -%gobuild(o:) go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**}; +%gobuild(o:) \ +%ifnarch ppc64 \ +go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\ +%else \ +go build -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\ +%endif \ # Define commands for testing %gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};