Skip to content

Commit

Permalink
[build] Be explicit about -fcommon compiler directive
Browse files Browse the repository at this point in the history
gcc10 switched default behavior from -fcommon to -fno-common.  Since
"__shared" relies on the legacy behavior, explicitly specify it.

Signed-off-by: Bruce Rogers <brogers@suse.com>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
bfrogers authored and mcb30 committed Jun 27, 2020
1 parent 3f637d7 commit f982a71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile.housekeeping
Expand Up @@ -418,6 +418,7 @@ CFLAGS += -Os
CFLAGS += -g
ifeq ($(CCTYPE),gcc)
CFLAGS += -ffreestanding
CFLAGS += -fcommon
CFLAGS += -Wall -W -Wformat-nonliteral
HOST_CFLAGS += -Wall -W -Wformat-nonliteral
endif
Expand Down

0 comments on commit f982a71

Please sign in to comment.