diff --git a/src/system/boot/Jamfile b/src/system/boot/Jamfile index a8a5547e0e..70fae82d07 100644 --- a/src/system/boot/Jamfile +++ b/src/system/boot/Jamfile @@ -24,6 +24,11 @@ local librootFunctions = strtol.o ; +local platformObjects = ; +if $(TARGET_ARCH) = x86 { + platformObjects += cpuid.o ; +} + KernelLd boot_loader : boot_platform_$(TARGET_BOOT_PLATFORM).o boot_loader.a @@ -40,8 +45,8 @@ KernelLd boot_loader : # kernel) $(librootFunctions:G=src!system!kernel!lib) - # other kernel objects - cpuid.o + # platform specific objects + $(platformObjects) : $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/boot_loader.ld : -Bstatic