diff --git a/src/kernel/Jamfile b/src/kernel/Jamfile index 08a82b5d8d..a847342696 100644 --- a/src/kernel/Jamfile +++ b/src/kernel/Jamfile @@ -1,8 +1,24 @@ SubDir OBOS_TOP src kernel ; KernelLd boot_loader : - boot_loader.a boot_platform_$(OBOS_BOOT_PLATFORM).o + boot_loader.a + + # posix functions needed by the stage2 boot loader + <$(SOURCE_GRIST)!libroot!posix!locale>ctype.o + <$(SOURCE_GRIST)!libroot!posix!stdio>kvsprintf.o + <$(SOURCE_GRIST)!libroot!posix!string>memset.o + <$(SOURCE_GRIST)!libroot!posix!string>memcpy.o + <$(SOURCE_GRIST)!libroot!posix!string>memmove.o + <$(SOURCE_GRIST)!libroot!posix!string>strlen.o + <$(SOURCE_GRIST)!libroot!posix!string>strnlen.o + <$(SOURCE_GRIST)!libroot!posix!string>strcmp.o + <$(SOURCE_GRIST)!libroot!posix!string>strncmp.o + : + $(SUBDIR)/ldscripts/$(OBOS_ARCH)/stage2.ld + : + -Bstatic + : ; KernelLd stage2 :