Re: [RFC PATCH v2 3/5] meson: Pass objects and dependencies to declare_dependency()

2024-06-06 Thread Philippe Mathieu-Daudé
On 27/5/24 12:49, Paolo Bonzini wrote: From: Akihiko Odaki We used to request declare_dependency() to link_whole static libraries. If a static library is a thin archive, GNU ld keeps all object files referenced by the archive open, and sometimes exceeds the open file limit. Another problem wit

[RFC PATCH v2 3/5] meson: Pass objects and dependencies to declare_dependency()

2024-05-27 Thread Paolo Bonzini
From: Akihiko Odaki We used to request declare_dependency() to link_whole static libraries. If a static library is a thin archive, GNU ld keeps all object files referenced by the archive open, and sometimes exceeds the open file limit. Another problem with link_whole is that suboptimal handling