Make it more similar to the autotools-build-job by dropping the
custom $PREFIX variable and redefining the standard $VIRT_PREFIX
instead, which also makes $PKG_CONFIG_PATH shorter, and moving
all environment variables together.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
jobs/autotools.yaml | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
index 5c78e6a..ac7099f 100644
--- a/jobs/autotools.yaml
+++ b/jobs/autotools.yaml
@@ -228,13 +228,14 @@
# to unset it here.
export CC=
+ export VIRT_PREFIX="$VIRT_PREFIX/i686-w64-mingw32/sys-root/mingw"
+ export PKG_CONFIG_PATH="$VIRT_PREFIX/lib/pkgconfig"
+ export PKG_CONFIG_LIBDIR="/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig"
+
mkdir -p build32
cd build32
- export PKG_CONFIG_LIBDIR="/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig"
- export PKG_CONFIG_PATH="$VIRT_PREFIX/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig" \
- export PREFIX=$VIRT_PREFIX/i686-w64-mingw32/sys-root/mingw
- ../autogen.sh --host=i686-w64-mingw32 --prefix=$PREFIX
+ ../autogen.sh --prefix=$VIRT_PREFIX --host=i686-w64-mingw32
$MAKE -j{smp}
$MAKE -j{smp} install
- shell: |
@@ -243,13 +244,14 @@
# See above
export CC=
+ export VIRT_PREFIX="$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/mingw"
+ export PKG_CONFIG_PATH="$VIRT_PREFIX/lib/pkgconfig"
+ export PKG_CONFIG_LIBDIR="/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig"
+
mkdir -p build64
cd build64
- export PKG_CONFIG_LIBDIR="/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig"
- export PKG_CONFIG_PATH="$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig" \
- export PREFIX=$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/mingw
- ../autogen.sh --host=x86_64-w64-mingw32 --prefix=$PREFIX
+ ../autogen.sh --prefix=$VIRT_PREFIX --host=x86_64-w64-mingw32
$MAKE -j{smp}
$MAKE -j{smp} install
publishers:
--
2.14.3
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
On Tue, Apr 17, 2018 at 05:43:11PM +0200, Andrea Bolognani wrote: > Make it more similar to the autotools-build-job by dropping the > custom $PREFIX variable and redefining the standard $VIRT_PREFIX > instead, which also makes $PKG_CONFIG_PATH shorter, and moving > all environment variables together. > > Signed-off-by: Andrea Bolognani <abologna@redhat.com> > --- > jobs/autotools.yaml | 18 ++++++++++-------- > 1 file changed, 10 insertions(+), 8 deletions(-) Reviewed-by: Daniel P. Berrangé <berrange@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 :| -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
© 2016 - 2025 Red Hat, Inc.