Build: Make sure we build everyone's STATIC_LIB_DEPS first

If a program's compilation depends on something generated by a library,
we need to make sure that library is built before any of the program's
own compilation units.
This commit is contained in:
Andreas Kling 2019-12-25 13:34:20 +01:00
commit 4883176fd8
Notes: sideshowbarker 2024-07-19 10:41:32 +09:00

View file

@ -89,7 +89,7 @@ endif
@echo "AS $@"
$(QUIET) $(AS) -o $@ $<
$(PROGRAM): $(SUFFIXED_OBJS) $(EXTRA_OBJS) $(STATIC_LIB_DEPS)
$(PROGRAM): $(STATIC_LIB_DEPS) $(SUFFIXED_OBJS) $(EXTRA_OBJS)
@echo "LINK $(PROGRAM)"
$(QUIET) $(CXX) -o $(PROGRAM) $(EXTRA_OBJS) $(SUFFIXED_OBJS) $(LDFLAGS)