commit:     284e184f22ceca2d4cf47d3e9e3ce47a94e8a1b9
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 29 16:14:01 2022 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Jul 29 16:14:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=284e184f

app-containers/syft: add -extldflags switch to the linker flags

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 app-containers/syft/syft-0.52.0-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app-containers/syft/syft-0.52.0-r1.ebuild 
b/app-containers/syft/syft-0.52.0-r1.ebuild
index 82a8e5f1a7d8..78e4ff1e79aa 100644
--- a/app-containers/syft/syft-0.52.0-r1.ebuild
+++ b/app-containers/syft/syft-0.52.0-r1.ebuild
@@ -21,6 +21,7 @@ src_compile() {
        local BUILD_DATE
        BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
        ego build -o bin/syft -ldflags "
+               -extldflags '-static'
                -X github.com/anchore/syft/internal/version.version=${PV}
                -X 
github.com/anchore/syft/internal/version.gitCommit=${GIT_COMMIT}
                        -X 
github.com/anchore/syft/internal/version.buildDate=${BUILD_DATE}

Reply via email to