From d37f6e1fbbdb52b170e61e82c845b944a7c38aaa Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 6 Jul 2023 10:47:06 -0700 Subject: [PATCH] Add -lm to 2019/dogon/Makefile Not all systems implicitly link in libm so this is necessary for those systems. --- 2019/dogon/Makefile | 2 +- thanks-for-fixes.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/2019/dogon/Makefile b/2019/dogon/Makefile index e021c530d..2ec91e0a7 100644 --- a/2019/dogon/Makefile +++ b/2019/dogon/Makefile @@ -76,7 +76,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT} # Libraries needed to build # -LIBS= -L ${X11_LIBDIR} -lX11 +LIBS= -L ${X11_LIBDIR} -lX11 -lm # C compiler to use # diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 2f93ccc6d..b55851102 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1349,6 +1349,11 @@ Cody made the author's statement that the entry compiles cleanly true by fixing versions of C` (in main()). Not strictly necessary but if he's making fixes he might as well. +## [2019/dogon](2019/dogon/prog.c) ([README.md](2019/dogon/README.md)) + +Cody added explicit linking of libm (`-lm`) for systems that do not do this +(linux does not seem to but macOS does). + ## [2019/karns](2019/karns/prog.c) ([README.md](2019/karns/README.md]))