From: Mike Frysinger Date: Mon, 20 Aug 2012 00:42:39 +0000 (+0100) Subject: timer-time: fix link order when static linking on glibc X-Git-Tag: v0.1~474 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=898f14315ec5a835de4a355871a2798543a582ee;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index f33042aee..e453388c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-08-20 Mike Frysinger + + 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 timespec: omit unnecessary AC_C_INLINE diff --git a/m4/timer_time.m4 b/m4/timer_time.m4 index d6e0efeb6..bc84554b7 100644 --- a/m4/timer_time.m4 +++ b/m4/timer_time.m4 @@ -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 ])