Add -lm to 2018/bellard/Makefile
Not all systems implicitly link in libm so this is necessary for those systems.
This commit is contained in:
1 parent
04f6af3952
commit
8e1112bea0
2 files changed
+6
-1
No files matched your search
@@ -75,7 +75,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}
|
|||||||
|
|
||||||
# Libraries needed to build
|
# Libraries needed to build
|
||||||
#
|
#
|
||||||
LIBS= -lcurses
|
LIBS= -lcurses -lm
|
||||||
|
|
||||||
# C compiler to use
|
# C compiler to use
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -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
|
He also added explicit linking of libm (`-lm`) for systems that do not do this
|
||||||
(linux seems to not but macOS does).
|
(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]))
|
## [2019/ciura](2019/ciura/prog.c) ([README.md](2019/ciura/README.md]))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user