This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: fix testing for -lrt
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 09 Mar 2006 16:44:00 -0700
- Subject: Patch: FYI: fix testing for -lrt
- Reply-to: tromey at redhat dot com
I'm checking this in.
My System.nanoTime test broke a particular JNI test case, since -lrt
was not linked in. Linking libgcj.so against this fixes the problem.
Tom
2006-03-09 Tom Tromey <tromey@redhat.com>
* configure: Rebuilt.
* configure.ac (HAVE_CLOCK_GETTIME): Put -lrt in THREADLIBS as
well.
Index: configure.ac
===================================================================
--- configure.ac (revision 111869)
+++ configure.ac (working copy)
@@ -1021,7 +1021,10 @@
AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define if you have clock_gettime()])
case "$THREADSPEC" in
*-lrt*) ;;
- *) THREADSPEC="$THREADSPEC -lrt" ;;
+ *)
+ THREADSPEC="$THREADSPEC -lrt"
+ THREADLIBS="$THREADLIBS -lrt"
+ ;;
esac])
LIBS="$save_LIBS"