static compiling and debug info now configurable with config

Started by TedWalther, June 15, 2009, 01:25:18 PM

Previous topic - Next topic

TedWalther

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.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.

TedWalther

#1
Oops, forgot to initialize the $enable_debug variable. That is fixed and the patch is updated.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.

TedWalther

#2
You can now download the most current and up to date patch here:



http://ted.affordableaffiliates.com/newlisp-configure.patch">http://ted.affordableaffiliates.com/new ... gure.patch">http://ted.affordableaffiliates.com/newlisp-configure.patch
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.