Actions
Bug #2548
closedcannot build statically compiled lighttpd
ASK QUESTIONS IN Forums:
Description
Can not build a statically compiled lighttpd.
When trying to compile a statically built lighttpd, you need to have LIGHTTPD_STATIC defined. On uCLinux, which has no dynamic linking, the file <dlfcn.h> is always included if not on a WIN32 machine. This is not correct for a static build.
Here is the patch..
diff --git a/src/plugin.c b/src/plugin.c index 55f8b03..bbc9c0d 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -6,11 +6,12 @@ #include <stdio.h> + #ifdef HAVE_VALGRIND_VALGRIND_H # include <valgrind/valgrind.h> #endif -#ifndef __WIN32 +#if !defined(__WIN32) && !defined(LIGHTTPD_STATIC) # include <dlfcn.h> #endif /* @@ -99,7 +100,9 @@ static int plugins_register(server *srv, plugin *p) { * */
Files
Updated by gstrauss almost 9 years ago
Straightforward patch. Can it be applied and this ticket closed?
Updated by stbuehler almost 9 years ago
- Target version changed from 1.4.x to 1.4.40
Updated by stbuehler almost 9 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset r3087.
Actions
Also available in: Atom