From 86c83d8d25e092abb3d1b3a63206fc6794ae7e65 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Mon, 17 Feb 2020 14:40:43 -0500 Subject: [PATCH] correct %gobuild definition Signed-off-by: Lokesh Mandvekar --- oci-seccomp-bpf-hook.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oci-seccomp-bpf-hook.spec b/oci-seccomp-bpf-hook.spec index 5851bf2..73f3609 100644 --- a/oci-seccomp-bpf-hook.spec +++ b/oci-seccomp-bpf-hook.spec @@ -12,8 +12,7 @@ %endif %if ! 0%{?gobuild:1} -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,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v -x %{?**}; +%define gobuild 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,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v -x %{?**}; %endif %global provider github