From: Helmut Grohne Date: Mon, 27 May 2019 19:32:49 +0000 (+0200) Subject: configure: apply ${cross_prefix} to pkg-config calls X-Git-Tag: fio-3.15~9 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4d1bc43e9f495459f03b32a53002e1526d06dea6;p=fio.git 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 --- 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