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.