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

2012-08-19 Thread Pádraig Brady
On 08/18/2012 10:57 PM, Mike Frysinger wrote: > 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): Sw

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

2012-08-18 Thread Mike Frysinger
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