[Buildroot] [PATCH 1/1] package/smstools3: fix build with gcc 10.x

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Aug 6 15:23:13 UTC 2020


On Thu, 6 Aug 2020 11:58:31 +0200
Michael Fischer <mf at go-sys.de> wrote:

> Signed-off-by: Michael Fischer <mf at go-sys.de>
> ---
>  package/smstools3/smstools3.mk | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/package/smstools3/smstools3.mk b/package/smstools3/smstools3.mk
> index 87d189baa8..b15e189c60 100644
> --- a/package/smstools3/smstools3.mk
> +++ b/package/smstools3/smstools3.mk
> @@ -10,6 +10,11 @@ SMSTOOLS3_LICENSE = GPL-2.0+
>  SMSTOOLS3_LICENSE_FILES = doc/license.html LICENSE
>  
>  SMSTOOLS3_CFLAGS = $(TARGET_CFLAGS)
> +
> +ifeq ($(BR2_GCC_VERSION_10_X),y)
> +	SMSTOOLS3_CFLAGS += -Wl,--allow-multiple-definition
> +endif

We generally try to fix the gcc 10.x issues, when possible. In this
case, Debian has a patch:

  https://salsa.debian.org/debian-mobcom-team/smstools/-/blob/57a358a9eebbe2ca5639cc526f7027944ed95ea1/debian/patches/gcc10.patch

Could you use that instead ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list