]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: Link libvccard to /usr/lib from /usr/lib/xen/lib
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 11 Feb 2015 14:45:41 +0000 (09:45 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 11 Feb 2015 14:45:41 +0000 (09:45 -0500)
They are installed there since qemu-traditional builds them
and ends up installing them in /usr/lib/xen/lib. However
the linker only looks in /usr/lib so we fail when starting
that. Hence link the file to /usr/lib/xen/lib.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/Makefile

index 90266fc513994ece6bd9ab0a505a5b520bf518e2..3fb6cd8d8e506a1603303549694711af60eb707b 100644 (file)
@@ -937,6 +937,9 @@ endif
        fi
        echo "autoballoon=0" >> userspace/etc/xen/xl.conf
        mkdir -p userspace/usr/lib64/sasl2
+       if test -f userspace/usr/lib/xen/lib/libcacard.so; then \
+               (cd userspace/usr/lib/xen/lib; for lib in `ls -1 *.so*`; do (cd ../../; ln -sf xen/lib/$$lib); done;); \
+       fi
 
 .PHONY: nfs-install
 nfs-install: