Skip to content

Commit 6584b54

Browse files
tw4452852wenlingz
authored andcommitted
Makefile: add missing dependency
There is a missing dependency between lib and bin in Makefile. BTW, this issue is triggered by concurrent build. Tracked-On: #2370 Signed-off-by: Tw <wei.tan@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
1 parent c43bca9 commit 6584b54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hypervisor/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,9 @@ $(HV_OBJDIR)/$(HV_FILE).bin: $(HV_OBJDIR)/$(HV_FILE).out
336336

337337
$(HV_OBJDIR)/$(HV_FILE).out: $(C_OBJS) $(S_OBJS) $(LIB_FLAGS)
338338
${BASH} ${LD_IN_TOOL} $(ARCH_LDSCRIPT_IN) $(ARCH_LDSCRIPT) ${HV_OBJDIR}/.config
339-
$(CC) -Wl,-Map=$(HV_OBJDIR)/$(HV_FILE).map -o $@ $(LDFLAGS) $(ARCH_LDFLAGS) -T$(ARCH_LDSCRIPT) $^ $(LIB_FLAGS)
339+
$(CC) -Wl,-Map=$(HV_OBJDIR)/$(HV_FILE).map -o $@ $(LDFLAGS) $(ARCH_LDFLAGS) -T$(ARCH_LDSCRIPT) $^
340+
341+
$(LIB_FLAGS): lib
340342

341343
.PHONY: clean
342344
clean:

0 commit comments

Comments
 (0)