From edaaff513589a2bd55f6fcb53fe29688f39a15d3 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 27 Nov 2022 16:35:43 +0400 Subject: [PATCH] Split off libc --- Makefile | 2 +- src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c0a6ca6..a92ac2a 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ $(MRUBYVISOR): $(LIBKERNAUX) $(LIBMRUBY) $(LIBKERNAUX): cd vendor/libkernaux && ./autogen.sh - cd vendor/libkernaux && ./configure --host='i386-elf' --prefix='$(ABS_REPO)/$(DEST)' --enable-freestanding --with-drivers --with-libc AR='$(AR)' AS='$(AS)' CC='$(CC)' LD='$(LD)' RANLIB='$(RANLIB)' + cd vendor/libkernaux && ./configure --host='i386-elf' --prefix='$(ABS_REPO)/$(DEST)' --enable-freestanding --enable-split-libc --with-drivers --with-libc AR='$(AR)' AS='$(AS)' CC='$(CC)' LD='$(LD)' RANLIB='$(RANLIB)' cd vendor/libkernaux && $(MAKE) cd vendor/libkernaux && $(MAKE) install diff --git a/src/Makefile b/src/Makefile index 5e1b9ff..da97bf4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -27,7 +27,7 @@ clean: rm -f $(MRUBYVISOR) $(OBJS) $(MRUBYVISOR): $(OBJS) - $(CC) -T linker.ld -o $@ $^ -ffreestanding -nostdlib -lkernaux -lmruby -lgcc -Wl,-L$(DEST)/lib + $(CC) -T linker.ld -o $@ $^ -ffreestanding -nostdlib -lmruby -lkernaux -lc -lgcc -Wl,-L$(DEST)/lib grub-file --is-x86-multiboot2 $@ %.c.o: %.c