# HG changeset patch # User Mike Frysinger # Date 1345423359 -3600 # Node ID ea133888b2c23683f3ed37957862daa4e83ebaa7 # Parent 4c7f294421769eafeeaf3a38f0063a26d43e20c6 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 --- 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 --- 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 @@ #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 ])