Skip to content

Commit d44c1eb

Browse files
committed
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.
1 parent 56177f4 commit d44c1eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ VERSION = 1.1.1
22

33
CC ?= gcc
44
CFLAGS ?= -g
5-
CFLAGS += -W -Wall -pedantic -ansi -std=c99 -DVERSION=\"$(VERSION)\"
5+
CFLAGS += -W -Wall -pedantic -ansi -std=c99 -DVERSION=\"$(VERSION)\" -fcommon
66

77
# OS X installs ncurses with wide character support, but not as "libncurses".
88
ifeq ($(shell uname -s),Darwin)

0 commit comments

Comments
 (0)