From cc6b376cfb2c3f334c851d0c753d680d952f2b83 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Thu, 31 Dec 2020 13:58:23 +0100 Subject: [PATCH] KernelLd: the kernel must be rebuilt when its linker script is modified. Change-Id: I4f8bf6757b716f910116509419452cfc4c7f6216 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3580 Reviewed-by: waddlesplash --- build/jam/KernelRules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/jam/KernelRules b/build/jam/KernelRules index 2a72c9cab4..748d585eea 100644 --- a/build/jam/KernelRules +++ b/build/jam/KernelRules @@ -46,7 +46,10 @@ rule KernelLd LINK on $(1) = $(TARGET_LD_$(TARGET_PACKAGING_ARCH)) ; LINKFLAGS on $(1) = $(4) ; - if $(3) { LINKFLAGS on $(1) += --script=$(3) ; } + if $(3) { + LINKFLAGS on $(1) += --script=$(3) ; + Depends $(1) : $(3) ; + } # Remove any preset LINKLIBS, but link against libgcc.a. Linking against # libsupc++ is opt-out.