From 4d1bc43e9f495459f03b32a53002e1526d06dea6 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 27 May 2019 21:32:49 +0200 Subject: [PATCH] configure: apply ${cross_prefix} to pkg-config calls Otherwise, we're searching for build architecture libraries which is not what we want. Signed-off-by: Helmut Grohne Signed-off-by: Jens Axboe --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b0052dc1..82bd432e 100755 --- a/configure +++ b/configure @@ -1344,14 +1344,14 @@ int main(void) return GTK_CHECK_VERSION(2, 18, 0) ? 0 : 1; /* 0 on success */ } EOF -GTK_CFLAGS=$(pkg-config --cflags gtk+-2.0 gthread-2.0) +GTK_CFLAGS=$(${cross_prefix}pkg-config --cflags gtk+-2.0 gthread-2.0) ORG_LDFLAGS=$LDFLAGS LDFLAGS=$(echo $LDFLAGS | sed s/"-static"//g) if test "$?" != "0" ; then echo "configure: gtk and gthread not found" exit 1 fi -GTK_LIBS=$(pkg-config --libs gtk+-2.0 gthread-2.0) +GTK_LIBS=$(${cross_prefix}pkg-config --libs gtk+-2.0 gthread-2.0) if test "$?" != "0" ; then echo "configure: gtk and gthread not found" exit 1 -- 2.25.1