# HG changeset patch # User Paul Boddie # Date 1716149926 -7200 # Node ID dd0745ab8b8a68bc88fce8d909697fc5f3f52503 # Parent 47c5be0df2487bce24c4b896d779776c22e50284 Reordered GCC arguments to prevent linking failures. Someone decided to change the GCC invocation or linking semantics at some point, meaning that libraries specified "too early" in the argument list no longer provide the symbols required by the program objects, whereas specifying them at the end of the argument list allows those symbols to be found and obtained. diff -r 47c5be0df248 -r dd0745ab8b8a templates/Makefile --- a/templates/Makefile Sun May 19 21:57:21 2024 +0200 +++ b/templates/Makefile Sun May 19 22:18:46 2024 +0200 @@ -17,7 +17,7 @@ rm -f main $(OBJ) main: $(OBJ) - $(CC) $(LDFLAGS) $(OBJ) -o $@ + $(CC) $(OBJ) -o $@ $(LDFLAGS) .c.o: $(CC) -c $(CFLAGS) $< -o $@