Control: tags -1 + patch

Given how xjdic is unmaintained upstream, it's probably better to simply
re-enable -fcommon, rather than trying to fix the source itself.
(Similary to iftop's #957357, of which I shamelessly copied the commit
summary line.)
>From 6b4b299de3aaa6773fbb32868e0b282ac5cd4c49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= <fbri...@fbriere.net>
Date: Sat, 25 Jul 2020 11:26:03 -0400
Subject: [PATCH] Work around FTBFS with GCC 10 by compiling with -fcommon.

Closes: #957985
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 9e08836..b2db4ce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,9 @@ CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
+# Linking will fail with -fno-common, which is the default since GCC 10
+CFLAGS += -fcommon
+
 #export CFLAGS := -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
     CFLAGS += -O0
-- 
2.27.0

Reply via email to