From: Carl Worth Date: Fri, 24 Apr 2020 19:08:18 +0000 (-0700) Subject: Fix compilation by putting libraries late on the command line X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=sidebyside;h=68e0718609201b5aee4d4371f7766da5a6c8808c;p=dvonn 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. --- 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) $^ > $@