diff options
author | Didier Raboud <odyx@debian.org> | 2020-07-24 14:49:59 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2020-07-24 15:55:27 +0200 |
commit | da0ffe395d67eee70ea60e74d333f2176c00067c (patch) | |
tree | 79dbee407489458914167975bf4c24ed774010ae | |
parent | 73b467d8375bd4e664dfb8db4c8ebdd65ab37a17 (diff) |
Pass -fcommon in CFLAGS to circumvent gcc-10 FTBFS
Closes: #957784
-rwxr-xr-x | debian/rules | 8 |
1 files changed, 8 insertions, 0 deletions
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 $@ |