summaryrefslogtreecommitdiffstats
path: root/recipes-containers/docker/docker.inc
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/docker/docker.inc
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/docker/docker.inc')
-rw-r--r--recipes-containers/docker/docker.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
index 99535a77..717874b7 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -82,8 +82,8 @@ do_compile() {
82 # can find the needed headers files and libraries 82 # can find the needed headers files and libraries
83 export GOARCH=${TARGET_GOARCH} 83 export GOARCH=${TARGET_GOARCH}
84 export CGO_ENABLED="1" 84 export CGO_ENABLED="1"
85 export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" 85 export CGO_CFLAGS="${CFLAGS}"
86 export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" 86 export CGO_LDFLAGS="${LDFLAGS}"
87 export DOCKER_BUILDTAGS='${BUILD_TAGS} ${PACKAGECONFIG_CONFARGS}' 87 export DOCKER_BUILDTAGS='${BUILD_TAGS} ${PACKAGECONFIG_CONFARGS}'
88 export GO111MODULE=off 88 export GO111MODULE=off
89 89