config.mak.uname: define NEEDS_LIBRT under Linux, for now
authorEric Wong <e@80x24.org>
Sun, 10 Jul 2016 22:16:44 +0000 (22:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jul 2016 18:44:18 +0000 (11:44 -0700)
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>
config.mak.uname
index a88f13989ac9c2cbb303e2ae5f9ed43c9a5f778f..22958a8d6ffbf3ca937b5aac97bb9f616de70130 100644 (file)
@@ -36,6 +36,8 @@ ifeq ($(uname_S),Linux)
        HAVE_DEV_TTY = YesPlease
        HAVE_CLOCK_GETTIME = YesPlease
        HAVE_CLOCK_MONOTONIC = YesPlease
+       # -lrt is needed for clock_gettime on glibc <= 2.16
+       NEEDS_LIBRT = YesPlease
        HAVE_GETDELIM = YesPlease
        SANE_TEXT_GREP=-a
 endif