From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Thu, 6 Aug 2020 17:23:13 +0200 Subject: [Buildroot] [PATCH 1/1] package/smstools3: fix build with gcc 10.x In-Reply-To: <20200806095831.18563-1-mf@go-sys.de> References: <20200806095831.18563-1-mf@go-sys.de> Message-ID: <20200806172313.6559758d@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Thu, 6 Aug 2020 11:58:31 +0200 Michael Fischer wrote: > Signed-off-by: Michael Fischer > --- > 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