From 9d8dada5253aa2f7864b131e01a5edabb896ad4c Mon Sep 17 00:00:00 2001 From: Dries Harnie Date: Mon, 16 Feb 2026 18:07:30 +0100 Subject: [PATCH] HACK: Use --start-group to solve circular linker errors --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 21b7e4392fe..88351b73af9 100644 --- a/Makefile.common +++ b/Makefile.common @@ -129,7 +129,7 @@ endif # The build rule for the ScummVM executable $(EXECUTABLE): $(DETECT_OBJS) $(OBJS) - +$(QUIET_LINK)$(LD) $(LDFLAGS) $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) $(LIBS) -o $@ + +$(QUIET_LINK)$(LD) $(LDFLAGS) -Wl,--start-group $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) -Wl,--end-group $(LIBS) -o $@ +$(QUIET)$(LS) $@ ifdef SPLIT_DWARF