-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(main/neovim): turn nvim into a wrapper to fix dynamic linking
This is required to make Android's dlopen() implementation resolve symbols exported by libluajit.so to Lua modules. Co-authored-by: Pip Cet <[email protected]> closes #22328
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/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:libluajit.so" exec "$PREFIX/libexec/nvim" "$@" |