|
|
|
@ -12,10 +12,11 @@
@@ -12,10 +12,11 @@
|
|
|
|
|
%global debug_package %{nil} |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v -x %{?**}; |
|
|
|
|
%ifarch ppc64 |
|
|
|
|
# certain options do not exist on ppc64 big endian |
|
|
|
|
%define gobuild(o:) GO111MODULE=off go build -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -A |
|
|
|
|
%define gobuild(o:) GO111MODULE=off go build -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v -x %{?**}; |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%define gogenerate go generate |
|
|
|
|