From 4883176fd8a7afb085cce9d893d016ff9d08b764 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 25 Dec 2019 13:34:20 +0100 Subject: [PATCH] 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. --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)