Skip to content

Commit

Permalink
lighttpd: Fix mod_wstunnel not being built in static build
Browse files Browse the repository at this point in the history
JIRA: DTR-460
  • Loading branch information
Darchiv committed Dec 15, 2023
1 parent 09dea94 commit 959eabf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lighttpd/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ if [ ! -f "$PREFIX_LIGHTTPD_BUILD/config.h" ]; then
LIGHTTPD_CFLAGS="-DLIGHTTPD_STATIC -DPHOENIX"
WITH_ZLIB="no" && [ "$PORTS_ZLIB" = "y" ] && WITH_ZLIB="yes"

( cd "$PREFIX_LIGHTTPD_SRC" && "./autogen.sh" )

( cd "$PREFIX_LIGHTTPD_BUILD" && "$PREFIX_LIGHTTPD_SRC/configure" LIGHTTPD_STATIC=yes CFLAGS="${LIGHTTPD_CFLAGS} ${CFLAGS}" CPPFLAGS="" LDFLAGS="${LDFLAGS}" AR_FLAGS="-r" \
-C --disable-ipv6 --disable-mmap --with-bzip2=no \
--with-zlib="$WITH_ZLIB" --enable-shared=no --enable-static=yes --disable-shared --host="$HOST" --with-openssl="${PREFIX_OPENSSL}" --with-pcre="${PREFIX_PCRE}" \
Expand Down
13 changes: 13 additions & 0 deletions lighttpd/patches/mod_wstunnel_fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff -ruN a/src/Makefile.am b/src/Makefile.am
--- a/src/Makefile.am 2019-01-27 10:22:20.000000000 +0100
+++ b/src/Makefile.am 2023-12-15 12:33:50.223714175 +0100
@@ -469,7 +469,8 @@
mod_userdir.c \
mod_usertrack.c \
mod_vhostdb.c \
- mod_webdav.c
+ mod_webdav.c \
+ mod_wstunnel.c
lighttpd_CPPFLAGS = \
-DLIGHTTPD_STATIC \
$(XML_CFLAGS) $(SQLITE_CFLAGS) \

0 comments on commit 959eabf

Please sign in to comment.