Hi,

We had a discussion some time back about this; it is a cool idea for
the SciTE executable to export all the Lua library functions, so that
Lua extensions like Lua File System can be just dropped in, no
problems.  This is relatively straightforward in Windows, because one
can explicitly export functions with __declspec(dllexport) (usually
hiding behind EXPORT or some such). Under Linux, -rdynamic does the
same job but this exports _everything_ and it really makes a
difference to executable size.

I find it easier just to link to the Lua library on my system rather than building Lua into SciTE. I find it relatively straightforward in Linux :)

Take care,
-Mitchell;


Fortunately, there's always an obscure command-line flag to the rescue
;). I added these flags to the link:

-rdynamic -Wl,-retain-symbols-file lua.txt

where lua.txt is a list of the symbols we want; it's easy to make this using

nm -g ../bin/SciTE | grep 'lua' > lua.txt

This brings my executable to just over a meg, which is pretty good
going. And lfs loaded no problem.

steve d.

_______________________________________________
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to