Skip to content

Commit

Permalink
Add C flag to allow tentative definitions
Browse files Browse the repository at this point in the history
A gcc-10 changes the default behaviour from -fcommon to -fno-common,
which causes linking errors in some build processes.

Fixes mpereira#40.
  • Loading branch information
dther committed Jun 1, 2020
1 parent 56177f4 commit d44c1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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)
Expand Down

0 comments on commit d44c1eb

Please sign in to comment.