diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-20 14:03:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-20 14:03:06 +0000 |
commit | adabbf213c455215091757e8a41226b45d6f2128 (patch) | |
tree | 6301b81dcaa0c7c6ba87740f719eca25f29989e5 /configure.local.example | |
parent | 1c8453f78a03f9001101f31308bbb164b9990469 (diff) | |
download | mandoc-adabbf213c455215091757e8a41226b45d6f2128.tar.gz |
Autodetect if -lrt is needed for nanosleep(3).
Helpful for Solaris 9 and 10.
Reminded by Thomas Klausner.
Diffstat (limited to 'configure.local.example')
-rw-r--r-- | configure.local.example | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/configure.local.example b/configure.local.example index db86c2fb..0fa3d3cb 100644 --- a/configure.local.example +++ b/configure.local.example @@ -129,11 +129,17 @@ LD_OHASH="-lutil" CFLAGS="${CFLAGS} -I/usr/local/include" -# Some platforms may need additional linker flags to link against libmandoc -# that are not autodetected. -# For example, Solaris 9 and 10 need -lrt for nanosleep(2). +# Some platforms may need an additional linker flag for nanosleep(2). +# If none is needed or it is -lrt, it is autodetected. +# Otherwise, set the following variable. -LDADD="-lrt" +LD_NANOSLEEP="-lrt" + +# Some platforms might need additional linker flags to link against +# libmandoc that are not autodetected, though no such cases are +# currently known. + +LDADD="-lm" # Some systems may want to set additional linker flags for all the # binaries, not only for those using libmandoc, for example for |