summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-10 22:16:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-11 18:44:18 (GMT)
commit52fcec75ce3a010ef4b2bbd1161da5e5fe301ec7 (patch)
tree0814a59349e477f66c8aea52a49509f74f607226
parentd19e3a5b21f28c07886801616e02e08eab64a7d8 (diff)
downloadgit-52fcec75ce3a010ef4b2bbd1161da5e5fe301ec7.zip
git-52fcec75ce3a010ef4b2bbd1161da5e5fe301ec7.tar.gz
git-52fcec75ce3a010ef4b2bbd1161da5e5fe301ec7.tar.bz2
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>
-rw-r--r--config.mak.uname2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.mak.uname b/config.mak.uname
index a88f139..22958a8 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