[patch] fix the build with a toolchain with a linker defaulting to ld --as-needed

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu Oct 22 10:01:51 UTC 2015


On 2015-10-20 10:28, Erik Joelsson wrote:
> Hello Matthias,
>
> I think this looks good and can sponsor the push for you. Have you 
> signed the OCA?
The patch looks good to me to.

/Magnus

>
> /Erik
>
> On 2015-10-19 22:06, Matthias Klose wrote:
>> Toolchains for some Linux distributions (e.g. Ubuntu, OpenSuse) are 
>> configured to pass --as-needed to the linker by default, only linking 
>> with libraries when required.  A common build failure triggered by 
>> this default is having a required library on the command line before 
>> the object files being linked.  This happens when linking with a 
>> system zlib or system jpeg library.
>>
>> Patch is attached, checked with b87.
>>
>> There is one unrelated change, removing the explicit linking with the 
>> C library.  Is there any reason to keep that?
>>
>> Matthias
>>
>>
>




More information about the build-dev mailing list