]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: Makefile: add USE_RT to pass -lrt for clock_gettime() and friends
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Oct 2018 14:28:54 +0000 (16:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Oct 2018 14:39:03 +0000 (16:39 +0200)
commit58e90cbb9ef402e7107f58a4e38fd4a9e4709bd0
treef80dd7501abcd992bae3cd05520d2baca27ada74
parentac6c8805be9a29cb3c64c2fee6efffae516cf7d8
BUILD: Makefile: add USE_RT to pass -lrt for clock_gettime() and friends

Some code will require clock_gettime() which needs -lrt on most Linux
distros (those with glibc < 2.17). For this reason, this patch introduces
USE_RT to enable -lrt, which is implicitly set for all Linux flavors,
since it's harmless to link with it on more recent ones. Those who know
they can safely get rid of -lrt can remove it using "USE_RT=".
Makefile