summaryrefslogtreecommitdiffstats
path: root/recipes-containers/runc
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2026-02-09 16:30:43 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-09 20:22:07 +0000
commit9a28d5edadbec84e07e64dc7fbb67543becf22a9 (patch)
tree4ba40efe168312289dfba1edb815d20cbfc2bffb /recipes-containers/runc
parent914b5d23c40e2d1feae4c8a25bae0820fcfb3bd3 (diff)
downloadmeta-virtualization-9a28d5edadbec84e07e64dc7fbb67543becf22a9.tar.gz
recipes/golang: improve reproducibility
Refer [1], cgo will embeded cgo_ldflags in the intermediary output, which make content ID will be incfluenced by cgo_ldflags. '--sysroot=xxx' includes build path, which will make the binary not reproducible, these recipes can build successfully without --sysroot, so remove it [1] https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/runc')
-rw-r--r--recipes-containers/runc/runc.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc
index b834ab14..b7e9d72e 100644
--- a/recipes-containers/runc/runc.inc
+++ b/recipes-containers/runc/runc.inc
@@ -58,8 +58,8 @@ do_compile() {
58 # Pass the needed cflags/ldflags so that cgo 58 # Pass the needed cflags/ldflags so that cgo
59 # can find the needed headers files and libraries 59 # can find the needed headers files and libraries
60 export CGO_ENABLED="1" 60 export CGO_ENABLED="1"
61 export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" 61 export CGO_CFLAGS="${CFLAGS}"
62 export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" 62 export CGO_LDFLAGS="${LDFLAGS}"
63 export GO=${GO} 63 export GO=${GO}
64 64
65 export CFLAGS="" 65 export CFLAGS=""