static compiling and debug info now configurable with config

For the Compleat Fan
Locked
TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

static compiling and debug info now configurable with config

Post by 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.

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Post by TedWalther »

Oops, forgot to initialize the $enable_debug variable. That is fixed and the patch is updated.

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Post by TedWalther »

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

http://ted.affordableaffiliates.com/new ... gure.patch

Locked