diff --git a/src/system/boot/Jamfile b/src/system/boot/Jamfile index 3fa507c463..33551f77b6 100644 --- a/src/system/boot/Jamfile +++ b/src/system/boot/Jamfile @@ -37,7 +37,8 @@ KernelLd boot_loader_$(TARGET_BOOT_PLATFORM) : boot_tarfs.a boot_fatfs.a - libz.a + # needed by tarfs + boot_zlib.a # libroot functions needed by the stage2 boot loader (compiled for the # kernel) diff --git a/src/system/boot/loader/file_systems/tarfs/Jamfile b/src/system/boot/loader/file_systems/tarfs/Jamfile index 23c8b0c036..0b7008aa77 100644 --- a/src/system/boot/loader/file_systems/tarfs/Jamfile +++ b/src/system/boot/loader/file_systems/tarfs/Jamfile @@ -13,8 +13,19 @@ SubDirC++Flags -fno-rtti $(defines) ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src libs zlib ] ; -KernelStaticLibrary boot_tarfs : - tarfs.cpp + +KernelStaticLibrary boot_zlib : inflate.c + inffast.c + inftrees.c + adler32.c + crc32.c + zutil.c + : -fno-pic + ; + + +KernelStaticLibrary boot_tarfs : + tarfs.cpp : -fno-pic ;