newLISP Fan Club

Forum => Anything else we might add? => Topic started by: TedWalther on June 15, 2009, 01:25:18 PM

Title: static compiling and debug info now configurable with config
Post by: TedWalther on June 15, 2009, 01:25:18 PM
I have updated the configure file to work with the --enable-debug and --enable-static options



Static compiling is very useful for running newLISP inside a chroot jail, such as the OpenBSD webserver runs in.  This makes it possible to use newLISP for handling CGI's without having to duplicate system libraries and linkers inside the jail.



Here are the sizes of the resulting binaries on my 64bit OpenBSD system:



dynamic,nodebug: 258k

dynamic,withdebug: 596k

static,nodebug: 761k

static,withdebug: 3.2M



The defaults for the static and debug options is OFF, but they are now there if you ever need them.  On AIX this might not work, I don't know what options xlc takes, same with other Unices with their own compilers, but as data comes in I'll modify the script to accomodate based on the OSTYPE.



Updated patch has the same name, in the same place.  Wish there was somewhere I could upload it.



Also as before, the patch is applied against a pristine 10.0.8 tree.
Title:
Post by: TedWalther on June 15, 2009, 01:40:27 PM
Oops, forgot to initialize the $enable_debug variable. That is fixed and the patch is updated.
Title:
Post by: TedWalther on June 15, 2009, 02:56:01 PM
You can now download the most current and up to date patch here:



http://ted.affordableaffiliates.com/newlisp-configure.patch