From: Carl Worth Date: Sat, 2 May 2020 15:21:20 +0000 (-0700) Subject: Fix compilation by putting dependent libraries at the end X-Git-Url: https://git.cworth.org/git?p=loa;a=commitdiff_plain;h=HEAD 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. --- 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) $^ > $@