[libvirt] [PATCH 07/11] build: Use flat namespace for libvirt on macOS

Daniel P. Berrangé berrange at redhat.com
Wed Aug 21 17:05:03 UTC 2019


On Wed, Aug 21, 2019 at 07:13:19PM +0300, Roman Bolshakov wrote:
> >From ld(1):
> 
>   By default all references resolved to a dynamic library record the
>   library to which they were resolved. At runtime, dyld uses that
>   information to directly resolve symbols. The alternative is to use the
>   -flat_namespace option.  With flat namespace, the library is not
>   recorded.  At runtime, dyld will search each dynamic library in load
>   order when resolving symbols. This is slower, but more like how other
>   operating systems resolve symbols.
> 
> That fixes the set of tests that preload a mock library to replace
> library symbols:
>   qemublocktest
>   qemumonitorjsontest
>   viriscsitest
>   virmacmaptest
>   virnetserverclienttest
> 
> Signed-off-by: Roman Bolshakov <r.bolshakov at yadro.com>
> ---
>  configure.ac    | 1 +
>  src/Makefile.am | 9 +++++++--
>  2 files changed, 8 insertions(+), 2 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list