From: Changqing Li <[email protected]>
Signed-off-by: Changqing Li <[email protected]>
---
recipes-containers/nerdctl/nerdctl_git.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/recipes-containers/nerdctl/nerdctl_git.bb
b/recipes-containers/nerdctl/nerdctl_git.bb
index 8f63b48c..7c63f78e 100644
--- a/recipes-containers/nerdctl/nerdctl_git.bb
+++ b/recipes-containers/nerdctl/nerdctl_git.bb
@@ -76,6 +76,7 @@ do_compile() {
export GOARCH=${TARGET_GOARCH}
export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
+ export GO_BUILD_LDFLAGS="-s -w -buildid="
# -trimpath removes build paths from the binary (required for
reproducible builds)
oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}"
GO_BUILD_FLAGS="-trimpath" binaries
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9535):
https://lists.yoctoproject.org/g/meta-virtualization/message/9535
Mute This Topic: https://lists.yoctoproject.org/mt/117148692/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-