mirror of
https://github.com/skeeto/endlessh.git
synced 2025-12-08 14:13:23 +00:00
Improve support for Solaris and its derivatives
Requires extensions to be enabled due to incomplete support for POSIX.1-2008. However one of the now-exposed extensions is tragically named "struct queue". This struct was been renamed to "struct fifo". Thanks to @yvoinov for reporting this issue and collaborating on a solution. Closes #14, #17.
This commit is contained in:
22
README.md
22
README.md
@@ -73,11 +73,27 @@ LogLevel 0
|
||||
|
||||
## Build issues
|
||||
|
||||
RHEL 6 and CentOS 6 use a version of glibc older than 2.17 (December
|
||||
2012), and `clock_gettime(2)` is still in librt. For these systems you
|
||||
will need to link against librt:
|
||||
Some more esoteric systems require extra configuration when building.
|
||||
|
||||
### RHEL 6 / CentOS 6
|
||||
|
||||
This system uses a version of glibc older than 2.17 (December 2012), and
|
||||
`clock_gettime(2)` is still in librt. For these systems you will need to
|
||||
link against librt:
|
||||
|
||||
make LDLIBS=-lrt
|
||||
|
||||
### Solaris / illumos
|
||||
|
||||
These systems don't include all the necessary functionality in libc and
|
||||
the linker requires some extra libraries:
|
||||
|
||||
make CC=gcc LDLIBS='-lnsl -lrt -lsocket'
|
||||
|
||||
If you're not using GCC or Clang, also override `CFLAGS` and `LDFLAGS`
|
||||
to remove GCC-specific options. For example, on Solaris:
|
||||
|
||||
make CFLAGS=-fast LDFLAGS= LDLIBS='-lnsl -lrt -lsocket'
|
||||
|
||||
|
||||
[np]: https://nullprogram.com/blog/2019/03/22/
|
||||
|
||||
Reference in New Issue
Block a user