0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-23 01:07:10 +00:00
okhex c9c6e6f1ce fix(main/neovim): provide linluajit linking more robustly (#22373)
Updated LD_PRELOAD to include the absolute path to libluajit.so.
2024-11-24 05:32:17 +01:00

10 lines
414 B
Bash

#!/usr/bin/env sh
# For further details see:
# https://github.com/termux/termux-packages/issues/22328
# https://github.com/termux/termux-packages/wiki/Common-porting-problems#android-dynamic-linker
# https://github.com/android/ndk/issues/201
#
# Shim to properly expose LuaJIT runtime symbols to dynamically linked plugin modules
LD_PRELOAD="$LD_PRELOAD:$PREFIX/lib/libluajit.so" exec "$PREFIX/libexec/nvim" "$@"