From 781a0b702fc7aa1bd583aa9bb67fff72b4a09793 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Mon, 29 Jan 2024 22:40:17 +0100 Subject: [PATCH] Fix order of linker args so libraries are searched after our object files --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1b4c53b0..22574fe1 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ ifeq ($(strip $(IMGUI)),1) endif $(EXEC): $(OBJ) $(ENGINE_OBJ) $(GENERATED_OBJ) $(DEP_OBJ) Makefile - $(CXX) $(LDFLAGS) $(OBJ) $(GENERATED_OBJ) $(ENGINE_OBJ) $(DEP_OBJ) -o $(OUT_FILE) + $(CXX) $(OBJ) $(GENERATED_OBJ) $(ENGINE_OBJ) $(DEP_OBJ) $(LDFLAGS) -o $(OUT_FILE) obj/engine/%.cpp.o: engine/%.cpp engine/*.h src/assets.h src/scene_entrypoint.h src/window_conf.h Makefile @mkdir -p obj/engine