From c85b2cc35fe2de6c263f23005437662ae4d467a6 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Mon, 4 Jun 2018 15:41:54 -0400 Subject: [PATCH] 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 --- run_tests | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/run_tests b/run_tests index d7deb6f..57dec06 100755 --- a/run_tests +++ b/run_tests @@ -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 &&