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:
parent
56177f4393
commit
d44c1eb623
2
Makefile
2
Makefile
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user