Makefile: fix cyclic linking dependency

This commit is contained in:
Zihao Yu 2021-07-17 22:32:01 +08:00
parent 3364f57d0b
commit 3c2e025216

View file

@ -132,7 +132,7 @@ $(LIBS): %:
### Rule (link): objects (`*.o`) and libraries (`*.a`) -> `IMAGE.elf`, the final ELF binary to be packed into image (ld)
$(IMAGE).elf: $(OBJS) am $(LIBS)
@echo + LD "->" $(IMAGE_REL).elf
@$(LD) $(LDFLAGS) -o $(IMAGE).elf $(LINKAGE)
@$(LD) $(LDFLAGS) -o $(IMAGE).elf --start-group $(LINKAGE) --end-group
### Rule (archive): objects (`*.o`) -> `ARCHIVE.a` (ar)
$(ARCHIVE): $(OBJS)