From ffad18f71b715b3723682e6fa2c8a428b113769f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= <rverschelde@gmail.com>
Date: Fri, 28 Feb 2020 13:56:50 +0100
Subject: [PATCH] Makefile: Set -fcommon to workaround GCC 10 change
---
Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile b/Makefile
index 51f7542..f2cac55 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,9 @@ GAMEDATADIR ?= $(DATADIR)
EXE ?=
CFLAGS ?= -Wall -O2 -ffast-math -funroll-loops
+# Workaround FTBFS with GCC 10 until a proper fix is made upstream:
+# https://gitlab.com/LibreGames/jumpnbump/issues/36
+CFLAGS += -fcommon
SDL_CFLAGS = `sdl2-config --cflags`
DEFINES = -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT
INCLUDES = -I.
--
2.21.1