diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2011-02-02 10:48:24 +0200 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2011-02-02 10:48:24 +0200 |
commit | aa8374708a2e5e47266b7e65f710506d237a38db (patch) | |
tree | 74e43d0af93ad7827a8164bfa3ba1469d9f6c579 /libgfortran/configure.ac | |
parent | e829c3213bab0c0126336b4ffdd60605874e3783 (diff) | |
download | gcc-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.ac')
-rw-r--r-- | libgfortran/configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index ed1e2cc..8161659 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -486,11 +486,11 @@ AC_CHECK_LIB([m],[feenableexcept],[have_feenableexcept=yes AC_DEFINE([HAVE_FEENA # 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 AC_CHECK_LIB(rt, clock_gettime, - [LIBS="-lrt $LIBS" - AC_DEFINE(HAVE_CLOCK_GETTIME, 1, + [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define to 1 if you have the `clock_gettime' function.])]) fi |