diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-02-15 19:58:12 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:34 -0400 |
commit | 51bed94fd7524de5b25e44a0d1ae5c1110fecb0c (patch) | |
tree | a55a4d82be7c5e2e6d02407aa449c898d22d84aa /src | |
parent | 551e87e489a6bfe1c45cf17b41d0cb0ce66f4f3b (diff) | |
download | lighttpd-git-51bed94fd7524de5b25e44a0d1ae5c1110fecb0c.tar.gz |
[cmake] _WIN32 build more mods with BUILD_STATIC
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d525f240..f16db22c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -865,6 +865,28 @@ endif() mod_scgi.c ) +if(BUILD_STATIC) + set(BUILTIN_MODS ${BUILTIN_MODS} + mod_accesslog.c + mod_ajp13.c + mod_auth.c mod_auth_api.c + mod_authn_file.c + mod_cgi.c + mod_deflate.c + mod_dirlisting.c + mod_extforward.c + mod_proxy.c + mod_rrdtool.c + mod_sockproxy.c + mod_ssi.c + mod_status.c + mod_userdir.c + mod_vhostdb.c mod_vhostdb_api.c + mod_webdav.c + mod_wstunnel.c + ) +endif() + if(CMAKE_CROSSCOMPILING) # custom compile lemon using native compiler add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lemon @@ -1031,6 +1053,9 @@ if(HAVE_UUID_UUID_H) endif() target_link_libraries(mod_webdav ${L_MOD_WEBDAV}) +if(BUILD_STATIC) + target_link_libraries(lighttpd ${L_MOD_WEBDAV} ${XML2_LDFLAGS}) +endif() set(L_MOD_AUTHN_FILE) if(HAVE_LIBCRYPT) @@ -1044,6 +1069,8 @@ if(BUILD_SANITIZE_ADDRESS AND HAVE_LIBCRYPT) # calling a nullptr. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103930 target_link_libraries(lighttpd crypt) +elseif(BUILD_STATIC AND HAVE_LIBCRYPT) + target_link_libraries(lighttpd crypt) endif() if(WITH_KRB5) @@ -1090,6 +1117,9 @@ if(HAVE_ZLIB_H OR HAVE_ZSTD_H OR HAVE_BZLIB_H OR HAVE_BROTLI OR HAVE_LIBDEFLATE) set(L_MOD_DEFLATE ${L_MOD_DEFLATE} deflate) endif() target_link_libraries(mod_deflate ${L_MOD_DEFLATE}) + if(BUILD_STATIC) + target_link_libraries(lighttpd ${L_MOD_DEFLATE}) + endif() endif() if(HAVE_LIBFAM) |