Ah, something is finally easy!
Since FAT32 does not support symbolic links;
We need to use loader script snippets to go from the link-time generated library name to the versioned library name ( libwhatever.so -> libwhatever.so.99 ).
The LuaJit documentation describes the: whatever -> libwhatever.so conversion in detail.
Without any mention of loader script handling.
**Sometimes you just get lucky:**
http://repo.or.cz/w/luajit-2.0.git/b.../src/lj_clib.c
line 80 and following.
tl;dr: The LuaJit library loader already recognizes: GROUP( .... ) and INPUT( .... ) loader scripts and uses them as in-direction to the actual filename.
- - - -
Edit:
Just from code reading (not testing) it looks like GROUP( ... ) is broken and INPUT( ... ) is broken for more than a single filename.
But we only need INPUT( ... ) with a single filename.