Index: /trunk/kBuild/footer.kmk
===================================================================
--- /trunk/kBuild/footer.kmk	(revision 580)
+++ /trunk/kBuild/footer.kmk	(revision 581)
@@ -559,5 +559,9 @@
 ## wrapper the link command dependency check.
 ifndef NO_COMPILE_CMDS_DEPS
+ ifneq ($(filter comp-vars,$(KMK_FEATURES)),)
+_DEP_LINK_CMDS = $(comp-vars $(target)_CMDS_PREV_,$(target)_CMDS_,FORCE)
+ else
 _DEP_LINK_CMDS = $(if $(subst $(strip $($(target)_CMDS_PREV_)),,$(strip $($(target)_CMDS_))),FORCE,)
+ endif
 else
 _DEP_LINK_CMDS =
@@ -1091,5 +1095,4 @@
 	$($(target)_SOURCES.$(bld_type)))
 
-
 # source -> object
 $(eval $(value def_target_sources))
