From da0ffe395d67eee70ea60e74d333f2176c00067c Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Fri, 24 Jul 2020 14:49:59 +0200 Subject: =?UTF-8?q?Pass=20-fcommon=20in=20CFLAGS=20to=20circumvent=20gcc-1?= =?UTF-8?q?0=C2=A0FTBFS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #957784 --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index 2920c41..30d98a1 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,14 @@ include /usr/share/dpkg/architecture.mk +# Circumvent GCC-10 FTBFS +### A common mistake in C is omitting extern when declaring a global variable in +### a header file. If the header is included by several files it results in +### multiple definitions of the same variable. In previous GCC versions this +### error is ignored. GCC 10 defaults to -fno-common, which means a linker error +### will now be reported. +export DEB_CFLAGS_MAINT_APPEND = -fcommon + %: dh $@ -- cgit v1.2.3