Add -lm to 2015/yang/Makefile
Not all systems implicitly link in libm so this is necessary for those systems.
This commit is contained in:
1 parent
a875bde4d0
commit
04f6af3952
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -74,7 +74,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}
|
||||
|
||||
# Libraries needed to build
|
||||
#
|
||||
LIBS=
|
||||
LIBS= -lm
|
||||
|
||||
# C compiler to use
|
||||
#
|
||||
|
||||
@@ -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]))
|
||||
|
||||
Reference in new issue
Block a user