diff --git a/2012/endoh1/Makefile b/2012/endoh1/Makefile index 8d3802f1f..5ab733a1f 100644 --- a/2012/endoh1/Makefile +++ b/2012/endoh1/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 7ce556a73..07c91cbd1 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/endoh1](2012/endoh1/endoh1.c) ([README.md](2012/endoh1/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/kang](2012/kang/kang.c) ([README.md](2012/kang/README.md]))