From 49392dfa44ce7b762c92db1ecda3be26f35e2d72 Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Sat, 24 Apr 2021 23:06:32 +0200 Subject: [PATCH] dde_ipxe: fix build error with gcc 10 Fixes #4101 --- repos/dde_ipxe/lib/mk/dde_ipxe_nic.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/dde_ipxe/lib/mk/dde_ipxe_nic.inc b/repos/dde_ipxe/lib/mk/dde_ipxe_nic.inc index dbf7ba286e..6649392324 100644 --- a/repos/dde_ipxe/lib/mk/dde_ipxe_nic.inc +++ b/repos/dde_ipxe/lib/mk/dde_ipxe_nic.inc @@ -23,6 +23,9 @@ CC_WARN = -Wall -Wno-address CC_OPT += $(addprefix -fno-builtin-, putchar toupper tolower) CC_C_OPT += -DARCH=i386 -DPLATFORM=pcbios -include compiler.h -DOBJECT=$(notdir $(*:.o=)) +# Prevent link error with GCC 10, which defaults to -fno-common +CC_OPT += -fcommon + # # Enable debugging of any iPXE object here via '-Ddebug_='. # 'level' may be one of 1, 3, 7.