nerdctl: add -buildmode=pie to avoid textrel QA error
PATCH 1/1 nerdctl: add -buildmode=pie to avoid textrel QA error
From: Chen Qi <[email protected]>
On qemuarm, building nerdctl fails with QA error about textrel. Add '-buildmode=pie' to fix this issue.
--- recipes-containers/nerdctl/nerdctl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/nerdctl/nerdctl_git.bb +1 -1
@@ -78,7 +78,7 @@ do_compile() { export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" # -trimpath removes build paths from the binary (required for reproducible builds) - oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw" binaries + oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw -buildmode=pie" binaries } do_install() {
Signature · 1 line
2.34.1
Sorry, please ignore this patch.
I'll send to the correct mailing list.
Regards,
Qi
Quoted 32 lines · Chen Qi via lists.openembedded.org
From: Chen Qi <[email protected]>
On qemuarm, building nerdctl fails with QA error about textrel. Add '-buildmode=pie' to fix this issue.
Signed-off-by Chen Qi <[email protected]>--- recipes-containers/nerdctl/nerdctl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-containers/nerdctl/nerdctl_git.bb +1
-2@@ -78,7 +78,7 @@ do_compile() { export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" # -trimpath removes build paths from the binary (required for reproducible builds) - oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw" binaries + oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw -buildmode=pie" binaries } do_install() { -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#230496): https://lists.openembedded.org/g/openembedded-core/message/230496
Mute This Topic: https://lists.openembedded.org/mt/117630452/7304865
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-