Add -lm to 2005/jetro/Makefile
Not all systems implicitly link in libm so this is necessary for those systems.
This commit is contained in:
1 parent
98a9acf798
commit
85a15c683c
2 files changed
+9
-4
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}
|
|||||||
|
|
||||||
# Libraries needed to build
|
# Libraries needed to build
|
||||||
#
|
#
|
||||||
LIBS= `${SDL2_CONFIG} --libs`
|
LIBS= `${SDL2_CONFIG} --libs` -lm
|
||||||
|
|
||||||
# C compiler to use
|
# C compiler to use
|
||||||
#
|
#
|
||||||
|
|||||||
+8
-3
@@ -1155,12 +1155,17 @@ for the self-test feature.
|
|||||||
|
|
||||||
For much more details on the problem see [bugs.md](/bugs.md).
|
For much more details on the problem see [bugs.md](/bugs.md).
|
||||||
|
|
||||||
|
## [2005/jetro](2005/jetro/jetro.c) ([README.md](2005/jetro/README.md))
|
||||||
|
|
||||||
|
Cody added explicit linking of libm (`-lm`) for systems like linux that seem to
|
||||||
|
not do it implicitly (like macOS does).
|
||||||
|
|
||||||
|
|
||||||
## [2005/mynx](2005/mynx/mynx.c) ([README.md](2005/mynx/README.md]))
|
## [2005/mynx](2005/mynx/mynx.c) ([README.md](2005/mynx/README.md]))
|
||||||
|
|
||||||
Cody fixed this so that the
|
Cody fixed this so that the [configure](source/configure) script (which is not
|
||||||
[configure](source/configure) script (which is not needed but part of the entry)
|
needed but part of the entry) would work with compilers that have by default
|
||||||
would work with compilers that have by default `-Werror` like clang in macOS.
|
`-Werror` like clang in macOS.
|
||||||
|
|
||||||
Cody also added the alt code which does scan for https. Futile, maybe, based on
|
Cody also added the alt code which does scan for https. Futile, maybe, based on
|
||||||
how https is set up, in which case just enjoy it for what it was. But there
|
how https is set up, in which case just enjoy it for what it was. But there
|
||||||
|
|||||||
Reference in new issue
Block a user