diff --git a/go-compilers.spec b/go-compilers.spec index ed8e0ce..562aa9c 100644 --- a/go-compilers.spec +++ b/go-compilers.spec @@ -1,6 +1,6 @@ Name: go-compilers Version: 1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Go language compilers for various architectures Group: Development/Tools License: GPLv3+ @@ -71,6 +71,12 @@ install -m 644 -D %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.gcc-go %endif %changelog +* Fri Jan 27 2017 Jakub Čajka - 1-9 +- Add crash traceback level to golang as default +- Switch to PIE and push distribution ld flags +- Resolves BZ#1413529 +- Related BZ#1411242 + * Wed Jul 20 2016 Jakub Čajka - 1-8 - Build for s390x switch to golang - Related: bz1357394 diff --git a/macros.golang-compiler b/macros.golang-compiler index 526602a..5cf9d68 100644 --- a/macros.golang-compiler +++ b/macros.golang-compiler @@ -7,7 +7,7 @@ # Define commands for building # BUILD_ID can be generated for golang build no matter of debuginfo -%gobuild(o:) go build -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**}; +%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 %{?**}; # Define commands for testing %gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};