aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/configure
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2011-02-02 10:48:24 +0200
committerJanne Blomqvist <jb@gcc.gnu.org>2011-02-02 10:48:24 +0200
commitaa8374708a2e5e47266b7e65f710506d237a38db (patch)
tree74e43d0af93ad7827a8164bfa3ba1469d9f6c579 /libgfortran/configure
parente829c3213bab0c0126336b4ffdd60605874e3783 (diff)
downloadgcc-aa8374708a2e5e47266b7e65f710506d237a38db.zip
gcc-aa8374708a2e5e47266b7e65f710506d237a38db.tar.gz
gcc-aa8374708a2e5e47266b7e65f710506d237a38db.tar.bz2
PR 47571 Weakref trickery for clock_gettime()
From-SVN: r169517
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-xlibgfortran/configure4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/configure b/libgfortran/configure
index ec5c7ed..d052a05 100755
--- a/libgfortran/configure
+++ b/libgfortran/configure
@@ -25262,7 +25262,8 @@ fi
# At least for glibc, clock_gettime is in librt. But don't pull that
# in if it still doesn't give us the function we want.
-# This test is copied from libgomp.
+# This test is copied from libgomp, and modified to not link in -lrt
+# as libgfortran calls clock_gettime via a weak reference.
if test $ac_cv_func_clock_gettime = no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
@@ -25304,7 +25305,6 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
- LIBS="-lrt $LIBS"
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h