[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Embedding scripts in executable
- From: Mike Pall <mikelu-1110@...>
- Date: Tue, 4 Oct 2011 10:12:08 +0200
Tim Caswell wrote:
> I put printf statements in ll_loadfunc and it never seems to be
> called.
For symbols in the executable the lookup is performed in
lj_cf_package_loader_preload.
> I'm sure I'm missing something simple, but I can't figure it out.
You need to export the symbols from the binary. On Windows this is
done indirectly via their declaration. On Linux etc. you need to
use -Wl,-E when linking the executable.
[And yes, this is spelled out in
doc/running.html#opt_b
from git HEAD.]
--Mike