diff --git a/package/containerd/containerd.mk b/package/containerd/containerd.mk index ee07c22495..1f70a26ebf 100644 --- a/package/containerd/containerd.mk +++ b/package/containerd/containerd.mk @@ -49,6 +49,12 @@ ifneq ($(BR2_PACKAGE_CONTAINERD_CRI),y) CONTAINERD_TAGS += no_cri endif +ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) +# Go exe build with PIE doesn't work with musl. +# See: https://github.com/golang/go/issues/17847 +CONTAINERD_EXTLDFLAGS += -Wl,--no-pie +endif + define CONTAINERD_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 0644 $(@D)/containerd.service \ $(TARGET_DIR)/usr/lib/systemd/system/containerd.service