GNU bug report logs - #10926
Minor problem with static building of coreutils-8.1[345]

Previous Next

Package: coreutils;

Reported by: Heinz-Ado Arnolds <arnolds <at> MPA-Garching.MPG.DE>

Date: Fri, 2 Mar 2012 16:37:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Meyering <jim <at> meyering.net>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 10926 <at> debbugs.gnu.org
Subject: bug#10926: [PATCH] timer-time: fix linking order with pthreads/rt
Date: Mon, 20 Aug 2012 21:18:10 +0200
Pádraig Brady wrote:
> 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): 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
>>  ])
>
> Pushed http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=898f1431

Thanks.  We'll inherit this fix in 8.20.




This bug report was last modified 12 years and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.