Project

General

Profile

[Solved] how to compile lighttpd modules statically

Added by Anonymous over 8 years ago

I have currently complied lighttpd from source

./configure --prefix=/home/lighttpd \
--without-pcre \
--without-zlib \
--without-bzip2

I also tried -enable-static --disable-shared option, but modules still loading from lib directory

I want to compile all lighttpd module in single binary instead of loading from lib directory, how to do that ?


Replies (2)

RE: how to compile lighttpd modules statically - Added by gstrauss over 8 years ago

Have you tried using SCons? See commit c27e27a5 from Dec 2015

commit c27e27a51bca703da6ff289d629956ae20699b0f
Author: Stefan Bühler
Date:   Sat Dec 19 08:28:42 2015 +0000

    [scons] fix fullstatic build

    - scons searches the dynamic libs to find all dependencies to link
      against in the static link:
      - now use the system search path (ld --verbose) instead of some
        hardcoded list
      - remove duplicates from the list (all but the last) to avoid linker
        errors
      - use custom WhereIsFile function instead of env.WhereIs to find
        not-executable files too
    - only write 'plugin-static.h' if it actually changes
    (1-2/2)