bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] timer-time: fix linking order with pthreads/rt


From: Mike Frysinger
Subject: [PATCH] timer-time: fix linking order with pthreads/rt
Date: Sat, 18 Aug 2012 17:57:46 -0400

When statically linking pthreads with rt, the current order is:
        -lpthread -lrt

But when statically linking, the -lpthread will be discarded as it
isn't used.  It needs to come after the -lrt.

* m4/timer_time.m4 (LIB_TIMER_TIME): Swap order of variables.
---
 m4/timer_time.m4 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/timer_time.m4 b/m4/timer_time.m4
index d6e0efe..48fea11 100644
--- a/m4/timer_time.m4
+++ b/m4/timer_time.m4
@@ -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
 ])
-- 
1.7.9.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]