dde_rump: Set '-fcommon' for rump host tools

GCC 10 has `-fno-common` as default which leads to multiple definitions of
of symbols.

Fixes #3960
This commit is contained in:
Sebastian Sumpf 2020-11-25 06:48:13 +01:00 committed by Christian Helmuth
parent b907629341
commit 722254f864

View File

@ -65,7 +65,11 @@ HOST_INC_DIR = $(addprefix -I,$(RUMP_TOOL) \
$(RUMP_PORT_DIR)/src/tools/compat \
$(RUMP_PORT_DIR)/src/usr.bin/config)
HOST_CC_OPT = $(COMPAT_DEFS) $(HOST_D_OPT) $(HOST_INC_DIR)
#
# Force commmon symbols, multiple definitions of symbols may occur otherwise
#
HOST_CC_OPT = $(COMPAT_DEFS) $(HOST_D_OPT) $(HOST_INC_DIR) \
-fcommon
HOST_OBJ = $(HOST_SRC_C:%.c=$(RUMP_TOOL)/%.o)