summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2019-05-27 21:32:49 +0200
committerJens Axboe <axboe@kernel.dk>2019-05-27 14:50:55 -0600
commit4d1bc43e9f495459f03b32a53002e1526d06dea6 (patch)
tree1d49b77cf9409df6a82f73f858e0b0bd75778f57 /configure
parentce4d13ca162df4127ec3b5911553802c53396705 (diff)
downloadfio-4d1bc43e9f495459f03b32a53002e1526d06dea6.tar.gz
fio-4d1bc43e9f495459f03b32a53002e1526d06dea6.tar.bz2
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 <helmut@subdivi.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files 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