From a940e8aa7c728a5a730197c05416ebbfc5a5cf78 Mon Sep 17 00:00:00 2001 From: virtbuilder_pel7ppc64bebuilder0 Date: Sun, 2 May 2021 17:51:34 +0200 Subject: [PATCH] podman package change build options Signed-off-by: virtbuilder_pel7ppc64bebuilder0 --- SPECS/podman.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SPECS/podman.spec b/SPECS/podman.spec index 5fd5a4b..db3b5a8 100644 --- a/SPECS/podman.spec +++ b/SPECS/podman.spec @@ -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