diff --git a/mk/target.mk b/mk/target.mk index 353bdd04bd5f169ca90eec2b25968340ff03b085..1e9a4d407b560bbdd24a08f337c9697783b2034a 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -357,7 +357,10 @@ SRC_HC_POST_OPTS += \ endif # SplitObjs endif # StripLibraries -$(LIBRARY) : $(STUBOBJS) $(LIBOBJS) +# Note: $(STUBOBJS) isn't depended on here, but included when building the lib. +# (i.e., the assumption is that $(STUBOBJS) are created as a side-effect +# of building $(LIBOBJS)). +$(LIBRARY) : $(LIBOBJS) $(BUILD_LIB) endif # LIBRARY = ""