[libvirt] [PATCH] tests: Fix systemd test with --without-driver-modules

Eric Blake eblake at redhat.com
Thu Apr 10 17:02:02 UTC 2014


On 04/10/2014 09:26 AM, Jiri Denemark wrote:
> Every test that makes use of virmock.h (only virsystemdtest as of now)
> needs to be linked with -export-dynamic to make sure the LD_PRELOADed
> mock library can access it's wrap_* symbols. Normally,
> DRIVER_MODULE_LDFLAGS variable contains -export-dynamic but when
> --without-driver-modules configure option is used, DRIVER_MODULE_LDFLAGS
> is empty.
> 
> This patch turns on -export-dynamic for all tests unconditionally
> regardless on --without-driver-modules. This fixes virsystemdtest and
> all future users of virmock.h.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  tests/Makefile.am | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140410/c8d8530d/attachment-0001.sig>


More information about the libvir-list mailing list