]> git.cworth.org Git - loa/commitdiff
Fix compilation by putting dependent libraries at the end master
authorCarl Worth <cworth@cworth.org>
Sat, 2 May 2020 15:21:20 +0000 (08:21 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 2 May 2020 15:21:20 +0000 (08:21 -0700)
Something changed in the toolchain between 2008 and today. This
wouldn't compile without this change.

Makefile

index 9022ed97af0d4c0c28e25bbbedfedcc0069f5625..78be880fbd69274c6e14b91746b286f257641b49 100644 (file)
--- 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) $^ > $@