package/smstools3: fix build with gcc 10.x
PATCH 1/1 package/smstools3: fix build with gcc 10.x
Signed-off-by Michael Fischer <[email protected]>
--- package/smstools3/smstools3.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/smstools3/smstools3.mk +5 -0
@@ -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 + SMSTOOLS3_CFLAGS += -D NUMBER_OF_MODEMS=$(BR2_PACKAGE_SMSTOOLS3_NB_MODEMS) SMSTOOLS3_CFLAGS += -D NOSTATS
Signature · 1 line
2.28.0
PATCH 1/1 package/smstools3: fix build with gcc 10.x
Quoted 10 lines · On Thu, 6 Aug 2020 11:58:31 +0200 Michael Fischer <[email protected]> wrote:
Signed-off-by Michael Fischer <[email protected]>--- package/smstools3/smstools3.mk | 5 +++++ 1 file changed, 5 insertions(+)package/smstools3/smstools3.mk +0
-0
package/smstools3/smstools3.mk SMSTOOLS3_LICENSE = GPL-2.0+ · line 16
Quoted 7 lines
package/smstools3/smstools3.mk +4
-0@@ -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:
Could you use that instead ?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com