[libvirt] [PATCH] configure.ac: Avoid uname, which breaks cross-compilation

Eric Blake eblake at redhat.com
Tue May 4 16:56:03 UTC 2010


On 05/04/2010 02:54 AM, Daniel Veillard wrote:
> On Tue, May 04, 2010 at 01:41:55AM +0200, Matthias Bolte wrote:
>> When cross-compiling on Linux, configure will misdetect the target as
>> Linux because it uses uname instead of relying on the $host variable.
>> This results in including libvirt_linux.syms into libvirt.syms and
>> therefore trying to export undefined symbols.
>>
>> Replace uname checks with $host checks to fix this.
> 
>   ACK, I looked at those recently but completely forgot we were
>   cross-compiling for mingw !

I've gotten a lot further with an in-tree run of ./autobuild.sh with
this patch: the cross-build to mingw passed; now just creation of
mingw32-libvirt rpm fails:

Checking for unpackaged file(s): /usr/lib/rpm/check-files
/home/eblake/rpmbuild/BUILDROOT/mingw32-libvirt-0.8.1-3.fc12.eblake1272991027.i386
error: Installed (but unpackaged) file(s) found:
   /usr/i686-pc-mingw32/sys-root/mingw/share/libvirt/cpu_map.xml
   /usr/i686-pc-mingw32/sys-root/mingw/share/libvirt/schemas/nwfilter.rng

Since this has been acked, and autobuild.sh is a prereq to some of my
outstanding patches, I've gone ahead and pushed it.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list