From 8e1112bea08a09f61c211147fedfb08cba6851ac Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 6 Jul 2023 10:41:29 -0700 Subject: [PATCH] Add -lm to 2018/bellard/Makefile Not all systems implicitly link in libm so this is necessary for those systems. --- 2018/bellard/Makefile | 2 +- thanks-for-fixes.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/2018/bellard/Makefile b/2018/bellard/Makefile index 130523bc5..3883c6d99 100644 --- a/2018/bellard/Makefile +++ b/2018/bellard/Makefile @@ -75,7 +75,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT} # Libraries needed to build # -LIBS= -lcurses +LIBS= -lcurses -lm # C compiler to use # diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 281ef0d93..3649d38c7 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1314,6 +1314,11 @@ 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). +## [2018/bellard](2018/bellard/prog.c) ([README.md](2018/bellard/README.md)) + +Cody added explicit linking of libm (`-lm`) for systems that do not do this +(linux doesn't seem to but macOS does). + ## [2019/ciura](2019/ciura/prog.c) ([README.md](2019/ciura/README.md]))