# HG changeset patch # User Mike Becker # Date 1776715243 -7200 # Node ID 1eabc11235671bd8e9171ae224f8aa50e784e32f # Parent 36dd94278142380e680ecb28aecfa5db73d8b4ca fix build for linkers that expect libs to come last fixes #826 diff -r 36dd94278142 -r 1eabc1123567 src/Makefile --- a/src/Makefile Fri Apr 17 14:08:10 2026 +0200 +++ b/src/Makefile Mon Apr 20 22:00:43 2026 +0200 @@ -34,7 +34,7 @@ all: $(BUILDDIR)/terminal-chess FORCE $(BUILDDIR)/terminal-chess: $(OBJ) $(BUILDDIR)/libchess$(LIB_EXT) - $(CC) -o $@ $(LDFLAGS) $^ + $(CC) -o $@ $^ $(LDFLAGS) $(BUILDDIR)/libchess$(LIB_EXT): FORCE cd chess; $(MAKE)