[Buildroot] [PATCH 1/1] package/dieharder: fix build with gcc 10
Fabrice Fontaine
fontaine.fabrice at gmail.com
Wed Aug 19 16:34:18 UTC 2020
Disable -fno-common with dieharder, there is more than 100 variables to
fix and upstream seems dead.
Fixes:
- http://autobuild.buildroot.org/results/ba70d111cd1f2029a193a88af3b44daf6ef27786
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
package/dieharder/dieharder.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/dieharder/dieharder.mk b/package/dieharder/dieharder.mk
index c3eee64553..cbf28922fd 100644
--- a/package/dieharder/dieharder.mk
+++ b/package/dieharder/dieharder.mk
@@ -36,4 +36,9 @@ endif
# parallel build fail, disable it
DIEHARDER_MAKE = $(MAKE1)
+# Too many fixes needed to build with -fno-common which is default since gcc 10
+ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_10),y)
+DIEHARDER_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -fcommon"
+endif
+
$(eval $(autotools-package))
--
2.27.0
More information about the buildroot
mailing list