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.
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. At this point one only gains about 8K (!) from stripping the executable. And lfs loaded no problem. steve d. (If this post gets repeated my apologies; switching to gmail issues) _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
