Add -lm to 2012/blakely/Makefile

Not all systems implicitly link in libm so this is necessary for those
systems.
This commit is contained in:
Cody Boone Ferguson committed 2023-07-06 11:06:45 -07:00
1 parent e05ab1c10c
commit 2ae35e6847
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}
# Libraries needed to build # Libraries needed to build
# #
LIBS= LIBS= -lm
# C compiler to use # C compiler to use
# #
+5
View File
@@ -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 the author's comments (along with looking up the function for the right header
file). To build try the alt rule of the Makefile. 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)) ## [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 Cody added explicit linking of libm (`-lm`) as not all systems do this