From 2ae35e684771f3d5b680676c899f85c459ea3ea3 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 6 Jul 2023 11:06:45 -0700 Subject: [PATCH] Add -lm to 2012/blakely/Makefile Not all systems implicitly link in libm so this is necessary for those systems. --- 2012/blakely/Makefile | 2 +- thanks-for-fixes.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/2012/blakely/Makefile b/2012/blakely/Makefile index 4a6a17ac5..86179fc10 100644 --- a/2012/blakely/Makefile +++ b/2012/blakely/Makefile @@ -73,7 +73,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 07c91cbd1..59dd95e2f 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1256,6 +1256,11 @@ Cody, though he feels slightly sick :-), added a version for Windows based on the author's comments (along with looking up the function for the right header file). To build try the alt rule of the Makefile. +## [2012/blakely](2012/blakely/blakely.c) ([README.md](2012/blakely/README.md)) + +Cody added explicit linking of libm (`-lm`) as not all systems do this +implicitly (linux doesn't seem to but macOS does). + ## [2012/endoh1](2012/endoh1/endoh1.c) ([README.md](2012/endoh1/README.md)) Cody added explicit linking of libm (`-lm`) as not all systems do this