forked from pool/trivy
Accepting request 1086593 from Virtualization:containers
- actually create a PIE binary OBS-URL: https://build.opensuse.org/request/show/1086593 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/trivy?expand=0&rev=52
This commit is contained in:
commit
32822cf39a
@ -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