aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-08-19 18:34:18 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-08-19 23:28:34 +0200
commitcbcab766dc944bab4ebc4a082a977ab8c2f9a589 (patch)
tree9a63603cdfe3771e628df5dc02486544a42dfb96
parent99ab724a3a734bd7fc9f38f908ae8eb5d94c2b09 (diff)
downloadbuildroot-cbcab766dc944bab4ebc4a082a977ab8c2f9a589.tar.gz
buildroot-cbcab766dc944bab4ebc4a082a977ab8c2f9a589.tar.bz2
package/dieharder: fix build with gcc 10
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@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/dieharder/dieharder.mk5
1 files changed, 5 insertions, 0 deletions
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))