- actually create a PIE binary
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/trivy?expand=0&rev=61
This commit is contained in:
parent
c266b89032
commit
fa6666214b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 11 17:05:04 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- actually create a PIE binary
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 28 07:31:35 UTC 2023 - dmueller@suse.com
|
Fri Apr 28 07:31:35 UTC 2023 - dmueller@suse.com
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ name of the container.
|
|||||||
%setup -qa1
|
%setup -qa1
|
||||||
|
|
||||||
%build
|
%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
|
go build -o trivy -mod=vendor -buildmode=pie -trimpath -ldflags "-s -w -X=main.version=%{version}" cmd/trivy/main.go
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user