summaryrefslogtreecommitdiffstats
path: root/recipes-containers
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2026-02-04 14:34:45 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-09 20:17:32 +0000
commit914b5d23c40e2d1feae4c8a25bae0820fcfb3bd3 (patch)
tree6edfd90126b31835eae86c5b058d69f11e2dc729 /recipes-containers
parent9ba68c94cec4959e20700183f1b1b57cb5151989 (diff)
downloadmeta-virtualization-914b5d23c40e2d1feae4c8a25bae0820fcfb3bd3.tar.gz
nerdctl: add -buildmode=pie to avoid textrel QA error
On qemuarm, building nerdctl fails with QA error about textrel. Add '-buildmode=pie' to fix this issue. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers')
-rw-r--r--recipes-containers/nerdctl/nerdctl_git.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-containers/nerdctl/nerdctl_git.bb b/recipes-containers/nerdctl/nerdctl_git.bb
index 8f63b48c..295925d5 100644
--- a/recipes-containers/nerdctl/nerdctl_git.bb
+++ b/recipes-containers/nerdctl/nerdctl_git.bb
@@ -78,7 +78,7 @@ do_compile() {
78 export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" 78 export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
79 79
80 # -trimpath removes build paths from the binary (required for reproducible builds) 80 # -trimpath removes build paths from the binary (required for reproducible builds)
81 oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath" binaries 81 oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -buildmode=pie" binaries
82} 82}
83 83
84do_install() { 84do_install() {