Split off libc

This commit is contained in:
Alex Kotov 2022-11-27 16:35:43 +04:00
parent 466fde1d2c
commit edaaff5135
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ $(MRUBYVISOR): $(LIBKERNAUX) $(LIBMRUBY)
$(LIBKERNAUX): $(LIBKERNAUX):
cd vendor/libkernaux && ./autogen.sh 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)
cd vendor/libkernaux && $(MAKE) install cd vendor/libkernaux && $(MAKE) install

View File

@ -27,7 +27,7 @@ clean:
rm -f $(MRUBYVISOR) $(OBJS) rm -f $(MRUBYVISOR) $(OBJS)
$(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 $@ grub-file --is-x86-multiboot2 $@
%.c.o: %.c %.c.o: %.c