XSDL: use /proc/self/cwd as data dir for libX11

This commit is contained in:
Sergii Pylypenko
2014-12-18 21:14:47 +02:00
parent a839733973
commit d7aa0239be
11 changed files with 23 additions and 17 deletions

View File

@@ -26,11 +26,12 @@ cd android
} || exit 1
cd $1
[ -e libfontenc-*/Makefile ] && {
grep "/data/data/$PACKAGE_NAME" libfontenc-*/Makefile || \
grep "/proc/self/cwd" libfontenc-*/Makefile || \
git clean -f -d -x .
}
env TARGET_DIR=/data/data/$PACKAGE_NAME/files \
# Megahack: set /proc/self/cwd as the X.org data dir, and chdir() to the correct directory when runngin X.org
env TARGET_DIR=/proc/self/cwd \
./build.sh || exit 1
env CURDIR=$CURDIR \