Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
autofs.5460
autofs-5-1-2-build-check-for-clock_gettime-in-l...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File autofs-5-1-2-build-check-for-clock_gettime-in-librt.patch of Package autofs.5460
From: Gustavo Zacarias <gustavo@zacarias.com.ar> Subject: autofs-5.1.2 - build: check for clock_gettime in librt Git-repo: git://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git Git-commit: 52a697a7e6fd31a27030f3d1b1c4e572b1123148 Patch-mainline: 5.1.3 References: bsc#1046493 Glibc versions older than 2.17 define clock_gettime() in librt, so add a check for this. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Ian Kent <raven@themaw.net> Acked-by: Jeff Mahoney <jeffm@suse.com> --- Makefile.conf.in | 3 +++ Makefile.rules | 2 ++ configure.in | 4 ++++ 3 files changed, 9 insertions(+) --- a/Makefile.conf.in +++ b/Makefile.conf.in @@ -11,6 +11,9 @@ DAEMON_CFLAGS = @DAEMON_CFLAGS@ DAEMON_LDFLAGS = @DAEMON_LDFLAGS@ +# Glibc < 2.17 requires librt for clock_gettime() +LIBCLOCK_GETTIME = @LIBCLOCK_GETTIME@ + # Special parameters for glibc (libc 6) LIBNSL = @LIBNSL@ LIBRESOLV = @LIBRESOLV@ --- a/Makefile.rules +++ b/Makefile.rules @@ -56,6 +56,8 @@ endif LIBS += $(LIBNSL) +LIBS += $(LIBCLOCK_GETTIME) + # Standard rules .SUFFIXES: .c .o .s .so --- a/configure.in +++ b/configure.in @@ -177,6 +177,10 @@ if test "$ac_cv_search_versionsort" = "n [Define if your C library does not provide versionsort]) fi +# glibc < 2.17 needs librt for clock_gettime() +AC_CHECK_LIB(rt, clock_gettime, LIBCLOCK_GETTIME="-lrt") +AC_SUBST(LIBCLOCK_GETTIME) + # # glibc/libc 6 new libraries #
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor