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 | fd04a2530af452252677a5bf5b97f05788e91ba6 (patch) | |
tree | d99ae6824e0744df85dbcab73401d09f8fd7cdb6 /configure.local.example | |
parent | 3eb0bed6d844a0f9be00a889a5131b93ef2ef355 (diff) | |
download | mandoc-fd04a2530af452252677a5bf5b97f05788e91ba6.tar.gz mandoc-fd04a2530af452252677a5bf5b97f05788e91ba6.tar.zst mandoc-fd04a2530af452252677a5bf5b97f05788e91ba6.zip |
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 | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/configure.local.example b/configure.local.example index 9035c565..18a84fbd 100644 --- a/configure.local.example +++ b/configure.local.example @@ -1,4 +1,4 @@ -# $Id: configure.local.example,v 1.16 2016/07/19 22:40:33 schwarze Exp $ +# $Id: configure.local.example,v 1.17 2016/07/20 14:03:06 schwarze Exp $ # # Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org> # @@ -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 |