test: Add PKG_CONFIG_PATH in front of configure for i386

More recent glib-2.0 needs a specific different include files for
32 and 64 bit x86 architectures. We get this through pkg-config but
need to set its search path accordingly.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2018-06-04 15:41:54 -04:00
parent 142a2974ae
commit c85b2cc35f

View File

@ -1,5 +1,10 @@
#!/bin/bash
if [ $(uname -p) != "x86_64" ]; then
echo "This test only runs on x86_64 host"
exit 1
fi
unset SWTPM
# FIXME:
@ -17,7 +22,8 @@ CFLAGS='-m64' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/l
sudo make -j8 check ||
exit 1
CFLAGS='-m32' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/lib && \
PKG_CONFIG_PATH=/usr/lib/pkgconfig \
CFLAGS='-m32' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/lib && \
make clean && \
make -j8 &&
sudo make -j8 install &&