[Android] buildsystem: libvlc: avoid using realpath
Alexandre Janniaux
git at videolan.org
Wed Jun 23 04:04:49 UTC 2021
vlc-android | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Jun 18 10:17:46 2021 +0200| [8eae6ee651c211d4b6b0b4fc98906644427e974a] | committer: Nicolas Pomepuy
buildsystem: libvlc: avoid using realpath
realpath is not available on Darwin, even in zsh, and it makes the build
directory variable empty which completely break the build script later
in a non-obvious way, in particular by calling mkdir without directory
parameter.
With this change, it's possible to compile libvlc 4.0 for Android on
Darwin platforms.
> https://code.videolan.org/videolan/vlc-android/commit/8eae6ee651c211d4b6b0b4fc98906644427e974a
---
buildsystem/compile-libvlc.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildsystem/compile-libvlc.sh b/buildsystem/compile-libvlc.sh
index e17e73887..ca2559f75 100755
--- a/buildsystem/compile-libvlc.sh
+++ b/buildsystem/compile-libvlc.sh
@@ -120,7 +120,7 @@ else
exit 1
fi
-VLC_BUILD_DIR=$(realpath $VLC_SRC_DIR/build-android-${TARGET_TUPLE})
+VLC_BUILD_DIR="$(cd $VLC_SRC_DIR/; pwd)/build-android-${TARGET_TUPLE}"
VLC_OUT_PATH="$VLC_BUILD_DIR/ndk"
mkdir -p $VLC_OUT_PATH
VLC_OUT_LDLIBS="-L$VLC_OUT_PATH/libs/${ANDROID_ABI} -lvlc"
More information about the Android
mailing list