On 1/26/21 11:27 AM, Paolo Bonzini wrote:
> Meson's "static" argument to cc.find_library is a tri-state.  By default
> Meson *prefers* a shared library, which basically means using -l to
> look for it; instead, "static: false" *requires* a shared library.  Of
> course, "static: true" requires a static library, which is all good
> for --enable-static builds.
> 
> For --disable-static, "static: false" is rarely desirable; it does not
> match what the configure script used to do and the test is more complex
> (and harder to debug if it fails, which was reported by Peter Lieven
> for librbd).
> 
> Reported-by: Peter Lieven <p...@kamp.de>
> Tested-by: Peter Lieven <p...@kamp.de>
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  docs/devel/build-system.rst |  2 +-
>  meson.build                 | 79 +++++++++++++++++++------------------
>  2 files changed, 42 insertions(+), 39 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com>
Tested-by: Philippe Mathieu-Daudé <phi...@redhat.com>


Reply via email to