[PATCH] Fix tst-array{2,5} with --as-needed

Allan McRae allan@archlinux.org
Tue Jan 22 03:47:00 GMT 2013


On 22/01/13 13:34, Carlos O'Donell wrote:
> On Mon, Jan 21, 2013 at 10:30 PM, Adam Conrad <adconrad@0c3.net> wrote:
>> Ubuntu's toolchain defaults to --as-needed.  tst-array2 and
>> tst-array5 fail unless built with --no-as-needed, so add it
>> to the Makefile.  Tested locally to DTRT.  Okay to commit?
>>
>> 2013-01-21  Adam Conrad  <adconrad@0c3.net>
>>
>>        * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
>>        (LDFLAGS-tst-array5): Likewise.
> 
> Why does it fail with --as-needed?
> 

This issue is essentially the same as [1] - although that disappeared
when some functions were moved from librt.

Then it was decided that adding $(no-as-needed) all over the place was
not the correct approach but rather to rearrange link command line.

[1] http://sourceware.org/ml/libc-alpha/2012-10/msg00190.html

Allan



More information about the Libc-alpha mailing list