View Single Post
Old 06-24-2014, 10:53 AM   #64
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
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.

Last edited by knc1; 07-07-2014 at 09:10 AM.
knc1 is offline   Reply With Quote