1 |
commit: 284e184f22ceca2d4cf47d3e9e3ce47a94e8a1b9 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 29 16:14:01 2022 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 29 16:14:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=284e184f |
7 |
|
8 |
app-containers/syft: add -extldflags switch to the linker flags |
9 |
|
10 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
11 |
|
12 |
app-containers/syft/syft-0.52.0-r1.ebuild | 1 + |
13 |
1 file changed, 1 insertion(+) |
14 |
|
15 |
diff --git a/app-containers/syft/syft-0.52.0-r1.ebuild b/app-containers/syft/syft-0.52.0-r1.ebuild |
16 |
index 82a8e5f1a7d8..78e4ff1e79aa 100644 |
17 |
--- a/app-containers/syft/syft-0.52.0-r1.ebuild |
18 |
+++ b/app-containers/syft/syft-0.52.0-r1.ebuild |
19 |
@@ -21,6 +21,7 @@ src_compile() { |
20 |
local BUILD_DATE |
21 |
BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) |
22 |
ego build -o bin/syft -ldflags " |
23 |
+ -extldflags '-static' |
24 |
-X github.com/anchore/syft/internal/version.version=${PV} |
25 |
-X github.com/anchore/syft/internal/version.gitCommit=${GIT_COMMIT} |
26 |
-X github.com/anchore/syft/internal/version.buildDate=${BUILD_DATE} |