config.mak.uname: define NEEDS_LIBRT under Linux, for now
My Debian wheezy LTS system is still on glibc 2.13; and LTS distros may use older glibc, still, so lets not unnecessarily break things out-of-the-box. We seem to assume Linux is using glibc in our Makefiles anyways, so I don't think this will introduce new breakage for users of alternative libc implementations. Signed-off-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Eric Wong committed
Jul 10, 2016 at 22:16 UTC
52fcec75ce3a010ef4b2bbd1161da5e5fe301ec7
1 file changed
+2
config.mak.uname
+2
@@ -36,6 +36,8 @@ ifeq ($(uname_S),Linux)
36
HAVE_DEV_TTY = YesPlease
37
HAVE_CLOCK_GETTIME = YesPlease
38
HAVE_CLOCK_MONOTONIC = YesPlease
39
+ # -lrt is needed for clock_gettime on glibc <= 2.16
40
+ NEEDS_LIBRT = YesPlease
41
HAVE_GETDELIM = YesPlease
42
SANE_TEXT_GREP=-a
43
endif