summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-06-09 15:35:56 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-06-09 15:35:56 +0200
commit9445d6ca9c12882d9cd7d5a8491003b9cd9c6c44 (patch)
tree7ede3a4af16e9b34a63fcecdb4c04725c01b51c2 /compile.sh
parent17a8a827a15df48c7b7ce7958e4408f463e0149f (diff)
Improve cross-compilation when calling moc-qt4/moc
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