mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in: Don't link librt if clock_gettime is available in
the main C library. glibc 2.17 moves clock_* from librt to the main C library. http://sourceware.org/ml/libc-announce/2012/msg00001.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
14c9944e88
commit
093beeda90
2 changed files with 18 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
Fri May 10 12:01:36 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* configure.in: Don't link librt if clock_gettime is available in
|
||||
the main C library.
|
||||
glibc 2.17 moves clock_* from librt to the main C library.
|
||||
http://sourceware.org/ml/libc-announce/2012/msg00001.html
|
||||
|
||||
Thu May 9 22:00:35 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/ancdata.c (bsock_sendmsg_internal): controls_num should
|
||||
|
|
13
configure.in
13
configure.in
|
@ -1432,7 +1432,6 @@ AC_CHECK_LIB(crypt, crypt) # glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD)
|
|||
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
|
||||
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
|
||||
AC_CHECK_LIB(socket, shutdown) # SunOS/Solaris
|
||||
AC_CHECK_LIB(rt, clock_gettime) # GNU/Linux
|
||||
|
||||
AS_CASE(["$target_cpu"],
|
||||
[alpha*|sh4|sh4el|sh4eb], [AS_CASE(["$target_os"::"$GCC"],
|
||||
|
@ -1693,6 +1692,16 @@ if test "$rb_cv_have_signbit" = yes; then
|
|||
else
|
||||
AC_LIBOBJ([signbit])
|
||||
fi
|
||||
|
||||
AC_CHECK_FUNCS(clock_gettime)
|
||||
if test x"$ac_cv_func_clock_gettime" != xyes; then
|
||||
# glibc 2.17 moves clock_* functions from librt to the main C library.
|
||||
# http://sourceware.org/ml/libc-announce/2012/msg00001.html
|
||||
AC_CHECK_LIB(rt, clock_gettime)
|
||||
unset ac_cv_func_clock_gettime
|
||||
AC_CHECK_FUNCS(clock_gettime)
|
||||
fi
|
||||
|
||||
AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall __syscall chroot getcwd eaccess\
|
||||
truncate ftruncate ftello chsize times utimes utimensat fcntl lockf lstat\
|
||||
truncate64 ftruncate64 ftello64 fseeko fseeko64 \
|
||||
|
@ -1705,7 +1714,7 @@ AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall __syscall chroot ge
|
|||
dlopen sigprocmask sigaction _setjmp _longjmp\
|
||||
getsid setsid telldir seekdir fchmod cosh sinh tanh log2 round llabs\
|
||||
setuid setgid daemon select_large_fdset setenv unsetenv\
|
||||
mktime timegm gmtime_r clock_gettime gettimeofday poll ppoll\
|
||||
mktime timegm gmtime_r gettimeofday poll ppoll\
|
||||
pread sendfile shutdown sigaltstack dl_iterate_phdr\
|
||||
dup dup3 pipe2 posix_memalign memalign ioctl mblen)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue