summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-07-29 11:14:01 -0500
committerWilliam Hubbs <williamh@gentoo.org>2022-07-29 11:14:50 -0500
commit284e184f22ceca2d4cf47d3e9e3ce47a94e8a1b9 (patch)
tree7a4ebf4bba9b550685944e2925d1cb5d1f160b1a /app-containers
parentapp-accessibility/accerciser: Version bump to 3.40.0 (diff)
downloadgentoo-284e184f22ceca2d4cf47d3e9e3ce47a94e8a1b9.tar.gz
gentoo-284e184f22ceca2d4cf47d3e9e3ce47a94e8a1b9.tar.bz2
gentoo-284e184f22ceca2d4cf47d3e9e3ce47a94e8a1b9.zip
app-containers/syft: add -extldflags switch to the linker flags
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-containers')
-rw-r--r--app-containers/syft/syft-0.52.0-r1.ebuild1
1 files changed, 1 insertions, 0 deletions
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}