@@ -44,6 +44,12 @@ BUILDSDK_LDFLAGS = " \
MACHINEOVERRIDES .= ":darwinsdk"
+# debuginfod needs elfutils (libdebuginfod/libelf), which upstream only supports
+# on Linux/glibc hosts: its configure fails on Darwin (e.g. the linker has no
+# --build-id and there is no readelf). Don't let the distro's debuginfod feature
+# reach nativesdk recipes until elfutils is ported.
+DISTRO_FEATURES_FILTER_NATIVESDK:remove:darwin21 = "debuginfod"
+
TOOLCHAIN_SHAR_EXT_TMPL ?= "${DARWINBASE}/conf/files/darwin-toolchain-shar-extract.sh"
SDK_POSTPROCESS_COMMAND:append = "${@bb.utils.contains('DARWIN_INSTALLER_PKG', '1', ' create_macos_pkg', '', d)}"