timer-time: fix link order when static linking on glibc
authorMike Frysinger <vapier@gentoo.org>
Mon, 20 Aug 2012 00:42:39 +0000 (01:42 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 20 Aug 2012 00:53:53 +0000 (01:53 +0100)
* m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
_after_ -lrt so that it's significant.

ChangeLog
m4/timer_time.m4

index f33042a..e453388 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-20  Mike Frysinger <vapier@gentoo.org>
+
+       timer-time: fix link order when static linking on glibc
+       * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
+       _after_ -lrt so that it's significant.
+
 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
 
        timespec: omit unnecessary AC_C_INLINE
index d6e0efe..bc84554 100644 (file)
@@ -1,4 +1,4 @@
-# timer_time.m4 serial 1
+# timer_time.m4 serial 2
 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -33,7 +33,7 @@ AC_DEFUN([gl_TIMER_TIME],
  #endif
 #endif
       ],
-      [LIB_TIMER_TIME="$LIBMULTITHREAD $LIB_TIMER_TIME"])
+      [LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"])
     AC_CHECK_FUNCS([timer_settime])
   LIBS=$gl_saved_libs
 ])