[Buildroot] [PATCH 1/1] package/elfutils: enable on musl

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Oct 22 13:37:24 UTC 2023


On Thu, 19 Oct 2023 23:49:53 +0200
Bernd Kuhls <bernd at kuhls.net> wrote:

> diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk
> index 0757851b72..ebe30f63fa 100644
> --- a/package/elfutils/elfutils.mk
> +++ b/package/elfutils/elfutils.mk
> @@ -61,7 +61,7 @@ HOST_ELFUTILS_CONF_OPTS += --disable-libdebuginfod --disable-debuginfod
>  ELFUTILS_CONF_ENV += \
>  	LDFLAGS="$(ELFUTILS_LDFLAGS)"
>  
> -ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
> +ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
>  ELFUTILS_DEPENDENCIES += argp-standalone
>  ELFUTILS_CONF_OPTS += --disable-symbol-versioning

Are you sure this is correct? Indeed, argp-standalone is selected for
both uclibc and musl, but I don't think musl needs
--disable-symbol-versioning. A previous patch enabling elfutils on musl
had this instead:

-ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
 ELFUTILS_DEPENDENCIES += argp-standalone
+endif
+
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
 ELFUTILS_CONF_OPTS += --disable-symbol-versioning
 endif

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com



More information about the buildroot mailing list