forked from Mirrors/opensbi
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 <alistair.francis@wdc.com>
This commit is contained in:

committed by
Anup Patel

parent
4f32b13802
commit
76c759df6a
2
Makefile
2
Makefile
@@ -140,7 +140,7 @@ ASFLAGS += $(firmware-asflags-y)
|
|||||||
|
|
||||||
ARFLAGS = rcs
|
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 += $(platform-ldflags-y)
|
||||||
LDFLAGS += $(firmware-ldflags-y)
|
LDFLAGS += $(firmware-ldflags-y)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user