From 76c759df6ab96cc1418325ecf99a0d62a0f37459 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Wed, 23 Jan 2019 14:38:21 -0800 Subject: [PATCH] Makefile: Ensure lgcc is included This fixes errors like this: undefined reference to `__umoddi3' when buildilng for 32-bit systems Signed-off-by: Alistair Francis --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2848d09..a447a73 100644 --- a/Makefile +++ b/Makefile @@ -140,7 +140,7 @@ ASFLAGS += $(firmware-asflags-y) ARFLAGS = rcs -LDFLAGS += -g -Wall -nostdlib -Wl,--build-id=none -N +LDFLAGS += -g -Wall -nostdlib -Wl,--build-id=none -N -static-libgcc -lgcc LDFLAGS += $(platform-ldflags-y) LDFLAGS += $(firmware-ldflags-y) -- 2.7.4