2012-11-14 21:14:47 +01:00
|
|
|
From e17187091d463ad008c0b74eb04de5078b2abb96 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Michal Schmidt <mschmidt@redhat.com>
|
|
|
|
Date: Wed, 14 Nov 2012 14:44:05 +0100
|
|
|
|
Subject: [PATCH] configure.ac: fix FTBFS with new glibc
|
|
|
|
|
|
|
|
glibc moved clock_* functions from librt to the core libc. As a result,
|
|
|
|
clock_gettime is no more a suitable symbol to use when finding librt.
|
|
|
|
Look for mq_open instead.
|
|
|
|
Reference:
|
|
|
|
http://www.sourceware.org/git/gitweb.cgi?p=glibc.git&h=6e6249d0b461b952d0f544792372663feb6d792a
|
|
|
|
|
|
|
|
Fixes a FTBFS in Fedora Rawhide.
|
|
|
|
---
|
|
|
|
configure.ac | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2013-01-09 10:46:41 +01:00
|
|
|
Index: systemd-195/configure.ac
|
|
|
|
===================================================================
|
|
|
|
--- systemd-195.orig/configure.ac
|
|
|
|
+++ systemd-195/configure.ac
|
|
|
|
@@ -172,7 +172,7 @@ CC_CHECK_FLAGS_APPEND([with_ldflags], [L
|
2012-11-14 21:14:47 +01:00
|
|
|
-Wl,-z,now])
|
|
|
|
AC_SUBST([OUR_LDFLAGS], $with_ldflags)
|
|
|
|
|
|
|
|
-AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
|
|
|
|
+AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
|
|
|
|
AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
|
|
|
|
|
|
|
|
save_LIBS="$LIBS"
|