From: Eric Wong Date: Sun, 10 Jul 2016 22:16:44 +0000 (+0000) Subject: config.mak.uname: define NEEDS_LIBRT under Linux, for now X-Git-Tag: v2.10.0-rc0~94^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/52fcec75ce3a010ef4b2bbd1161da5e5fe301ec7 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 Signed-off-by: Junio C Hamano --- diff --git a/config.mak.uname b/config.mak.uname index a88f13989a..22958a8d6f 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -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