From 04f6af3952549924d0aa8b8ed8bed851ebfe4ec8 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 6 Jul 2023 10:39:11 -0700 Subject: [PATCH] Add -lm to 2015/yang/Makefile Not all systems implicitly link in libm so this is necessary for those systems. --- 2015/yang/Makefile | 2 +- thanks-for-fixes.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/2015/yang/Makefile b/2015/yang/Makefile index 4f5d37bbe..e35e6b12e 100644 --- a/2015/yang/Makefile +++ b/2015/yang/Makefile @@ -74,7 +74,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT} # Libraries needed to build # -LIBS= +LIBS= -lm # C compiler to use # diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index b5f376d17..281ef0d93 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1311,6 +1311,8 @@ time. Cody fixed an unfortunate typo in the Makefile that was preventing some of the files from compiling properly, trying instead to compile already compiled code. +He also added explicit linking of libm (`-lm`) for systems that do not do this +(linux seems to not but macOS does). ## [2019/ciura](2019/ciura/prog.c) ([README.md](2019/ciura/README.md]))