From cc43a16851b2078c59f0cee43d8f52870a332748 Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Sat, 2 May 2020 08:21:20 -0700
Subject: [PATCH] Fix compilation by putting dependent libraries at the end

Something changed in the toolchain between 2008 and today. This
wouldn't compile without this change.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 9022ed9..78be880 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ all: $(ALL)
 	$(CC) $(CFLAGS) $(MYCFLAGS) -c -o $@ -c $<
 
 loa: loa.o loa-board.o
-	$(CC) $(LDLAGS) $(MYLDFLAGS) -o $@ $^
+	$(CC) -o $@ $^ $(LDLAGS) $(MYLDFLAGS)
 
 Makefile.dep: *.c
 	$(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@
-- 
2.45.2