On Mon, 2021-11-22 at 16:41 +0000, Richard Purdie via lists.openembedded.org
wrote:
> I think this would be something really useful to fix. For ranlib, we can
> probably just patch BUILD_RANLIB to add the flag. For ar, we need to remove 
> the
> u option so it can only really be done with an intercept.
> 
> I did try this on the autobuilder with your ar intercept and the ranlib flag
> tweak with:
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/15/builds/4671/steps/11/logs/stdio
> 
> It broke as the above needs to be:
> 
> exec ar D$args $*
> 
> with no space else it breaks, at least on ubuntu1804. I'll try again with that
> fixed.
> 
> As mentioned on irc, I am a little worried about the fork overhead in the
> wrapper too as fork overhead does seem to be a build pain point for us and the
> hit on a more complex program like python may be worth it, not sure.

FWIW the above breaks meson which tries to run "ar D--version" after the above
change. The intercept script is going to have to be a little more "clever" :/

Cheers,

Richard



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1356): 
https://lists.openembedded.org/g/openembedded-architecture/message/1356
Mute This Topic: https://lists.openembedded.org/mt/87230716/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-architecture/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to