From 16766945eca6354406c15ceacd5f2b758ba59284 Mon Sep 17 00:00:00 2001 From: Xavier Brochard Date: Sat, 19 Jun 2021 19:39:35 +0200 Subject: [PATCH 1/2] =?UTF-8?q?workaround=20for=20GCC=C2=A010?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 10 default to -fno-common which force use of extern with global variable. This disable the option. See https://gcc.gnu.org/gcc-10/porting_to.html --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9e7cd4..f9a89a7 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ CC ?= gcc -CFLAGS += -std=c99 -Wall -O3 +CFLAGS += -std=c99 -Wall -O3 +# workaround for GCC 10 +CFLAGS += -fcommon LDFLAGS += -lm MAKE ?= make PREFIX ?= /usr/local From 35c4373a76a33f3e923edc146f8ae37e3ab6c335 Mon Sep 17 00:00:00 2001 From: Xavier Brochard Date: Sat, 5 Feb 2022 20:47:17 +0100 Subject: [PATCH 2/2] Update Makefile Co-authored-by: Ivan Kuchin --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9a89a7..3efe3c3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC ?= gcc -CFLAGS += -std=c99 -Wall -O3 +CFLAGS += -std=c99 -Wall -O3 # workaround for GCC 10 CFLAGS += -fcommon LDFLAGS += -lm