summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-25 13:34:20 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-25 13:35:57 +0100
commit4883176fd8a7afb085cce9d893d016ff9d08b764 (patch)
tree04aa350a315defed9d639ee7cef44fcd777566f3
parentec1db803f01ac6b59d3fae38f62c397825d7bed8 (diff)
downloadserenity-4883176fd8a7afb085cce9d893d016ff9d08b764.zip
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.
-rw-r--r--Makefile.common2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index e34944b995..6f7fe299d6 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -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)