summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-05-10 00:29:52 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-05-10 22:32:03 -0400
commit83d896d09548b7d85949a16fe076db70b84a9ace (patch)
tree90352582be2d1ea7ea4133d1267a77bc5e148c20 /INSTALL
parent598cdd0e5ec5417b5c72d519c6e9786a5834cb21 (diff)
downloadlighttpd-git-83d896d09548b7d85949a16fe076db70b84a9ace.tar.gz
static build instructions using SCons or make
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL24
1 files changed, 24 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index f0ca0612..c0899a8a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -30,3 +30,27 @@ compile and install it with ::
take look at the configfile in ./doc/lighttpd.conf,
make your own copy of that file and modify it for your needs.
+
+static build using SCons
+------------------------
+
+ $ scons -j 4 build_static=1 build_dynamic=0 prefix=/custom/inst/path install
+
+build_dynamic is enabled by default in SConstruct and needs to be disabled for
+the static build. See also the BoolVariable() settings in SConstruct for other
+configurable variables that might be set in a customized build. build_static=1
+can be replaced with build_fullstatic=1 to perform lighttpd static build with
+modules *and* to link statically against external dependencies.
+
+
+static build using make
+-----------------------
+
+* edit src/Makefile.am and, in the section under 'if LIGHTTPD_STATIC',
+ update lighttpd_SOURCES with each module to be included in the static build
+* create src/plugin-static.h with list of modules as PLUGIN_INIT(mod_foo)
+ for each module 'mod_foo' to be included in the static build
+
+ $ LIGHTTPD_STATIC=yes ./configure -C --enable-static=yes
+ $ make
+ $ sudo make install