~yerinalexey/scalc-os

93ae247d07a29f20009fef2b59fc43be12dab910 — Alexey Yerin 4 months ago 77babcd
Pass --no-undefined to the linker
1 files changed, 2 insertions(+), 1 deletions(-)

M Makefile
M Makefile => Makefile +2 -1
@@ 2,6 2,7 @@ CROSS_COMPILE = riscv64-linux-musl-

AS = ${CROSS_COMPILE}as
LD = ${CROSS_COMPILE}ld
LDFLAGS = --no-undefined
OBJCOPY = ${CROSS_COMPILE}objcopy
QEMU = qemu-system-riscv64
QEMUFLAGS =


@@ 46,7 47,7 @@ scalc-os.efi: scalc-os.so

scalc-os.so: ${OBJ} linker.ld
	@echo " ld $@"
	@${LD} -shared -Bsymbolic -T linker.ld -o $@ ${OBJ}
	@${LD} ${LDFLAGS} -shared -Bsymbolic -T linker.ld -o $@ ${OBJ}

.s.o:
	@echo " as $@"