From 722254f864788a2de171baabe8b8dde7853eed73 Mon Sep 17 00:00:00 2001 From: Sebastian Sumpf Date: Wed, 25 Nov 2020 06:48:13 +0100 Subject: [PATCH] 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 --- repos/dde_rump/lib/mk/rump_tools.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/repos/dde_rump/lib/mk/rump_tools.mk b/repos/dde_rump/lib/mk/rump_tools.mk index 8a4c78607d..921914cba5 100644 --- a/repos/dde_rump/lib/mk/rump_tools.mk +++ b/repos/dde_rump/lib/mk/rump_tools.mk @@ -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)