]> git.cworth.org Git - dvonn/commitdiff
Explicitly link against math library
authorCarl Worth <cworth@cworth.org>
Fri, 24 Apr 2020 17:30:40 +0000 (10:30 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 24 Apr 2020 17:30:40 +0000 (10:30 -0700)
I don't know what in the toolchain (or dependencies) changed such that
this is required now when it wasn't before, but here it is.

Makefile

index a7d2dc13297eb306788325119443fbc00f3105c7..ab8e9a0a9ab70004e381ca733fc794e2407f6151 100644 (file)
--- 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 $@ $^
+       $(CC) $(LDLAGS) $(MYLDFLAGS) -o $@ $^ -lm
 
 Makefile.dep: *.c
        $(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@