summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh
index 9cfb834..580f1c1 100755
--- a/compile.sh
+++ b/compile.sh
@@ -19,6 +19,14 @@ else
crosscompile_target=$1
TESTDISKCC=$crosscompile_target-gcc
PKG_CONFIG_PATH=/usr/$crosscompile_target/lib/pkgconfig
+ if [ ! -d $PKG_CONFIG_PATH ];
+ then
+ PKG_CONFIG_PATH=/usr/$crosscompile_target/sys-root/mingw/lib/pkgconfig
+ fi
+ if [ ! -d $PKG_CONFIG_PATH ];
+ then
+ unset PKG_CONFIG_PATH
+ fi
export PKG_CONFIG_PATH
fi
fi