1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

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
parent ec1db803f0
commit 4883176fd8

View file

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