From fa6666214b86b9f286d1c99d148a918b69972fd0df11a4e8c128eb9e934afed0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 11 May 2023 17:05:19 +0000 Subject: [PATCH] - actually create a PIE binary OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/trivy?expand=0&rev=61 --- trivy.changes | 5 +++++ trivy.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/trivy.changes b/trivy.changes index e8b9170..3cbe598 100644 --- a/trivy.changes +++ b/trivy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 11 17:05:04 UTC 2023 - Dirk Müller + +- actually create a PIE binary + ------------------------------------------------------------------- Fri Apr 28 07:31:35 UTC 2023 - dmueller@suse.com diff --git a/trivy.spec b/trivy.spec index c3eb6e3..5dfddcb 100644 --- a/trivy.spec +++ b/trivy.spec @@ -46,7 +46,7 @@ name of the container. %setup -qa1 %build -export CGO_ENABLED=0 +export CGO_ENABLED=1 go build -o trivy -mod=vendor -buildmode=pie -trimpath -ldflags "-s -w -X=main.version=%{version}" cmd/trivy/main.go %install