[Buildroot] [PATCH] package/qt5/qt5webengine: don't link with libstdc++.a on the host

Romain Naour romain.naour at gmail.com
Sun May 31 13:20:26 UTC 2020


Hello Thomas,

Le 31/05/2020 à 15:08, Thomas Petazzoni a écrit :
> On Fri, 29 May 2020 23:48:09 +0200
> Romain Naour <romain.naour at gmail.com> wrote:
> 
>>> If we have to pass this, doesn't it mean that the host tools are built
>>> statically ? Why are they built statically ? They really shouldn't be
>>> built statically at all. I believe this is what should be fixed, rather
>>> than just avoiding specifically from linking statically with libstdc++.  
>>
>> Without this option host tools are built statically because this option is
>> enabled by default.
> 
> Can't we remove this, and instead link dynamically the host tools ?

Sorry, I don't understand.

When --no-static-libstdc++ was added [1], it's default value was "false".
It means link statically libstdc++ if --no-static-libstdc++ is not provided on
the command line.

[1]
https://github.com/qt/qtwebengine-chromium/commit/cfab9198a9917f42cf08b1caf84ab9b71aac1911#diff-905c8f054808213577c0a92d1b704615

> 
>> Adding --no-static-libstdc++ allow to link dynamically with libc.so.6.
> 
> --no-static-libstdc++ changes how we link against libc.so.6 ? Shouldn't
> it only affect how we link against libstdc++.so ?

Sorry, I meant libstdc++.so here... not libc.so.6.

Best regards,
Romain


> 
> Thomas
> 



More information about the buildroot mailing list