From 68e0718609201b5aee4d4371f7766da5a6c8808c Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 24 Apr 2020 12:08:18 -0700 Subject: [PATCH] Fix compilation by putting libraries late on the command line Again, I don't know what changed in the compilation toolchain, but apparently to get compilation to work now, we need to put libraries we depend on after the object files that depend on them. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ab8e9a0..baa960b 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ all: $(ALL) $(CC) $(CFLAGS) $(MYCFLAGS) -c -o $@ -c $< dvonn: dvonn.o dvonn-board.o - $(CC) $(LDLAGS) $(MYLDFLAGS) -o $@ $^ -lm + $(CC) -o $@ $^ $(LDFLAGS) $(MYLDFLAGS) -lm Makefile.dep: *.c $(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@ -- 2.43.0