This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: fix testing for -lrt


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]