[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Embedding scripts in executable
- From: Axel Kittenberger <axkibe@...>
- Date: Tue, 4 Oct 2011 11:37:40 +0200
This is the script I wrote. I suppose everybody does more or less the same.
In the past I thought it was oh-so-clever to use obj-copy to make a
datafile bindable, but discovered this only worked with obj-copy on
Linux, and had complaints that I set the 'executable' bit albeit its
data. So I changed to the plain - create a char array in C and compile
On Wed, Sep 28, 2011 at 12:50 AM, Tim Caswell <firstname.lastname@example.org> wrote:
> I'm sure this has been done before, but google is not being my friend when
> trying to search for it.
> I have a folder full of lua modules (written in lua) and I want them
> embedded in my binary at compile/link time in such a way that the require
> system can find them.
> Is there a cross-platform way to embed these scripts and make
> them accessible to require?
> I'm using luajit, but I think this question is generic.
> -Tim Caswell