mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +00:00
build: let autobuild check more code
Some gcc warnings about no % in a printf format string only appear under --disable-nls. And configure.ac should automatically be excluding modules on mingw without us having to be explicit. Improving autobuild.sh to stress more combinations can only help. * autobuild.sh: Add --disable-nls on first build. Update mingw build to rely more on configure.ac detection.
This commit is contained in:
parent
d8916dc8e2
commit
daa8c96233
22
autobuild.sh
22
autobuild.sh
@ -15,8 +15,11 @@ rm -rf build
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
|
# Run with options not normally exercised by the rpm build, for
|
||||||
|
# more complete code coverage.
|
||||||
../autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \
|
../autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \
|
||||||
--enable-test-coverage \
|
--enable-test-coverage \
|
||||||
|
--disable-nls \
|
||||||
--enable-compile-warnings=error
|
--enable-compile-warnings=error
|
||||||
|
|
||||||
# If the MAKEFLAGS envvar does not yet include a -j option,
|
# If the MAKEFLAGS envvar does not yet include a -j option,
|
||||||
@ -61,6 +64,7 @@ if [ -f /usr/bin/rpmbuild ]; then
|
|||||||
-ba --clean libvirt.spec
|
-ba --clean libvirt.spec
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Test mingw cross-compile
|
||||||
if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then
|
if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then
|
||||||
make distclean
|
make distclean
|
||||||
|
|
||||||
@ -71,23 +75,7 @@ if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then
|
|||||||
--host=i686-pc-mingw32 \
|
--host=i686-pc-mingw32 \
|
||||||
--prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \
|
--prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \
|
||||||
--enable-compile-warnings=error \
|
--enable-compile-warnings=error \
|
||||||
--without-xen \
|
--without-libvirtd
|
||||||
--without-qemu \
|
|
||||||
--without-openvz \
|
|
||||||
--without-lxc \
|
|
||||||
--without-vbox \
|
|
||||||
--without-xenapi \
|
|
||||||
--without-uml \
|
|
||||||
--without-sasl \
|
|
||||||
--without-avahi \
|
|
||||||
--without-polkit \
|
|
||||||
--without-python \
|
|
||||||
--without-libvirtd \
|
|
||||||
--without-phyp \
|
|
||||||
--without-hyperv \
|
|
||||||
--without-netcf \
|
|
||||||
--without-audit \
|
|
||||||
--without-dtrace \
|
|
||||||
|
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
Loading…
Reference in New Issue
Block a user