Add C flag to allow tentative definitions

A gcc-10 changes the default behaviour from -fcommon to -fno-common,
which causes linking errors in some build processes.

Fixes #40.
This commit is contained in:
Rudy Dellomas III 2020-06-01 12:33:57 +10:00
parent 56177f4393
commit d44c1eb623

View File

@ -2,7 +2,7 @@ VERSION = 1.1.1
CC ?= gcc
CFLAGS ?= -g
CFLAGS += -W -Wall -pedantic -ansi -std=c99 -DVERSION=\"$(VERSION)\"
CFLAGS += -W -Wall -pedantic -ansi -std=c99 -DVERSION=\"$(VERSION)\" -fcommon
# OS X installs ncurses with wide character support, but not as "libncurses".
ifeq ($(shell uname -s),Darwin)