summaryrefslogtreecommitdiff
path: root/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch
blob: 485aa6c593388fa45bd4aa46d16bce3158109072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 081182f1675bb69eec58d92698f1ba2f23466d3f Mon Sep 17 00:00:00 2001
From: John Tsiombikas <nuclear@member.fsf.org>
Date: Sat, 1 Feb 2020 01:19:14 +0200
Subject: [PATCH] GCC 10 changes the default from -fcommon to -fno-common, so
 we need to set it explicitly now. Closes github bug #17.

---
 Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 9eba102..abf62c9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -7,7 +7,8 @@ ctl = spnavd_ctl
 
 CC = gcc
 INSTALL = install
-CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src -I/usr/local/include $(add_cflags)
+CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -fcommon \
+		 -I$(srcdir)/src -I/usr/local/include $(add_cflags)
 LDFLAGS = -L/usr/local/lib $(xlib) $(add_ldflags)
 
 $(bin): $(obj)