--- ./configure	2016-01-02 11:47:11.000000000 +0100
+++ ./configure	2016-02-09 15:34:42.497583300 +0100
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for lighttpd 1.4.39.
+# Generated by GNU Autoconf 2.69 for LightTPD 1.4.39.
 #
 # Report bugs to <contact@lighttpd.net>.
 #
@@ -587,13 +587,13 @@
 MFLAGS=
 MAKEFLAGS=
 
-# Identity of this package.
-PACKAGE_NAME='lighttpd'
+PACKAGE_NAME='LightTPD'
 PACKAGE_TARNAME='lighttpd'
-PACKAGE_VERSION='1.4.39'
-PACKAGE_STRING='lighttpd 1.4.39'
-PACKAGE_BUGREPORT='contact@lighttpd.net'
-PACKAGE_URL=''
+PACKAGE_VERSION='1.4.39-1-IPv6 (Win32)'
+PACKAGE_VERSION_NM='1.4.39'
+PACKAGE_STRING='LightTPD 1.4.39-1-IPv6 (Win32)'
+PACKAGE_BUGREPORT='lighttpd@dtech.hu'
+PACKAGE_URL='http://lighttpd.dtech.hu/'
 
 ac_unique_file="src/server.c"
 # Factoring default headers for most tests.
@@ -1401,7 +1401,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures lighttpd 1.4.39 to adapt to many kinds of systems.
+\`configure' configures LightTPD 1.4.39 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1473,7 +1473,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of lighttpd 1.4.39:";;
+     short | recursive ) echo "Configuration of LightTPD 1.4.39:";;
    esac
   cat <<\_ACEOF
 
@@ -1627,7 +1627,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-lighttpd configure 1.4.39
+LightTPD configure 1.4.39
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2290,7 +2290,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by lighttpd $as_me 1.4.39, which was
+It was created by LightTPD $as_me 1.4.39, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -16589,7 +16589,7 @@
 
 # disable mmap by default; if a mmapped file gets truncated, the process gets a SIGBUS signal
 # on reading the truncated area which we can't handle (yet).
-# lighttpd may always use mmap with files it owns (created tmp files)
+# LightTPD may always use mmap with files it owns (created tmp files)
 # Check whether --enable-mmap was given.
 if test "${enable_mmap+set}" = set; then :
   enableval=$enable_mmap; case "${enableval}" in
@@ -16861,7 +16861,7 @@
 
 fi
 
-LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
+LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION_NM | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
 
 cat >>confdefs.h <<_ACEOF
 #define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
@@ -17412,7 +17412,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by lighttpd $as_me 1.4.39, which was
+This file was extended by LightTPD $as_me 1.4.39, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -17478,7 +17478,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-lighttpd config.status 1.4.39
+LightTPD config.status 1.4.39
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
--- ./src/server.c	2015-12-04 21:13:47.000000000 +0100
+++ ./src/server.c	2016-02-10 08:15:48.975756300 +0100
@@ -65,6 +65,12 @@
 /* #define USE_ALARM */
 #endif
 
+/* Cygwin 'nodosfilewarning' fix */
+static int disable_cygpathwarn(void) {
+	setenv("CYGWIN", "nodosfilewarning", 1);
+	return -1;
+}
+
 #ifdef HAVE_GETUID
 # ifndef HAVE_ISSETUGID
 
@@ -239,7 +245,8 @@
 	force_assert(srv->fdwaitqueue);
 
 	srv->srvconf.modules = array_init();
-	srv->srvconf.modules_dir = buffer_init_string(LIBRARY_DIR);
+	/* Modify default module directory */
+        srv->srvconf.modules_dir = buffer_init_string("modules");
 	srv->srvconf.network_backend = buffer_init();
 	srv->srvconf.upload_tempdirs = array_init();
 	srv->srvconf.reject_expect_100_with_417 = 1;
@@ -357,12 +364,14 @@
 
 static void show_version (void) {
 #ifdef USE_OPENSSL
-# define TEXT_SSL " (ssl)"
+# define TEXT_SSL " - with SSL Support"
 #else
 # define TEXT_SSL
 #endif
-	char *b = PACKAGE_DESC TEXT_SSL \
-" - a light and fast webserver\n" \
+	char *b = PACKAGE_NAME "/" PACKAGE_VERSION TEXT_SSL "\n" \
+"A fast, secure and flexible webserver...\n\n" \
+"This version is built by dtech(.hu) Software Solutions, http://www.dtech.hu/\n" \
+"The package is compiled with GCC v" __VERSION__ " under 'i686-pc-cygwin' platform.\n" \
 "Build-Date: " __DATE__ " " __TIME__ "\n";
 ;
 #undef TEXT_SSL
@@ -450,19 +459,19 @@
       "\t- IPv6 support\n"
 #endif
 #if defined HAVE_ZLIB_H && defined HAVE_LIBZ
-      "\t+ zlib support\n"
+      "\t+ Zlib support\n"
 #else
-      "\t- zlib support\n"
+      "\t- Zlib support\n"
 #endif
 #if defined HAVE_BZLIB_H && defined HAVE_LIBBZ2
-      "\t+ bzip2 support\n"
+      "\t+ BZip2 support\n"
 #else
-      "\t- bzip2 support\n"
+      "\t- BZip2 support\n"
 #endif
 #if defined(HAVE_CRYPT) || defined(HAVE_CRYPT_R) || defined(HAVE_LIBCRYPT)
-      "\t+ crypt support\n"
+      "\t+ Crypt support\n"
 #else
-      "\t- crypt support\n"
+      "\t- Crypt support\n"
 #endif
 #ifdef USE_OPENSSL
       "\t+ SSL Support\n"
@@ -475,9 +484,9 @@
       "\t- PCRE support\n"
 #endif
 #ifdef HAVE_MYSQL
-      "\t+ mySQL support\n"
+      "\t+ MySQL support\n"
 #else
-      "\t- mySQL support\n"
+      "\t- MySQL support\n"
 #endif
 #if defined(HAVE_LDAP_H) && defined(HAVE_LBER_H) && defined(HAVE_LIBLDAP) && defined(HAVE_LIBLBER)
       "\t+ LDAP support\n"
@@ -485,9 +494,9 @@
       "\t- LDAP support\n"
 #endif
 #ifdef HAVE_MEMCACHE_H
-      "\t+ memcached support\n"
+      "\t+ Memcached support\n"
 #else
-      "\t- memcached support\n"
+      "\t- Memcached support\n"
 #endif
 #ifdef HAVE_FAM_H
       "\t+ FAM support\n"
@@ -500,9 +509,9 @@
       "\t- LUA support\n"
 #endif
 #ifdef HAVE_LIBXML_H
-      "\t+ xml support\n"
+      "\t+ XML support\n"
 #else
-      "\t- xml support\n"
+      "\t- XML support\n"
 #endif
 #ifdef HAVE_SQLITE3_H
       "\t+ SQLite support\n"
@@ -514,29 +523,34 @@
 #else
       "\t- GDBM support\n"
 #endif
-      "\n";
+      ;
   show_version();
   printf("\nEvent Handlers:\n\n%s", features);
 }
 
 static void show_help (void) {
 #ifdef USE_OPENSSL
-# define TEXT_SSL " (ssl)"
+# define TEXT_SSL " - with SSL Support"
 #else
 # define TEXT_SSL
 #endif
-	char *b = PACKAGE_DESC TEXT_SSL " ("__DATE__ " " __TIME__ ")" \
-" - a light and fast webserver\n" \
-"usage:\n" \
-" -f <name>  filename of the config-file\n" \
-" -m <name>  module directory (default: "LIBRARY_DIR")\n" \
+	char *b = PACKAGE_NAME "/" PACKAGE_VERSION TEXT_SSL "\n" \
+"A fast, secure and flexible webserver...\n\n" \
+"This version is built by dtech(.hu) Software Solutions, http://www.dtech.hu/\n" \
+"The package is compiled with GCC v" __VERSION__ " under 'i686-pc-cygwin' platform.\n" \
+"Build-Date: " __DATE__ " " __TIME__ "\n\n" \
+"Usage:\n" \
+" (nothing)  trying to start in test mode with default settings\n" \
+" -f <name>  filename of the config-file (default: 'conf/lighttpd.conf')\n" \
+" -m <name>  module directory (default: 'modules')\n" \
 " -p         print the parsed config-file in internal form, and exit\n" \
 " -t         test the config-file, and exit\n" \
 " -D         don't go to background (default: go to background)\n" \
 " -v         show version\n" \
 " -V         show compile-time features\n" \
-" -h         show this help\n" \
-"\n"
+" -h | -?    show this help\n\n" \
+"Notice:\n" \
+"In test mode LightTPD doesn't go to background. (-D option is unnecessary)\n" \
 ;
 #undef TEXT_SSL
 #undef TEXT_IPV6
@@ -547,6 +561,7 @@
 	server *srv = NULL;
 	int print_config = 0;
 	int test_config = 0;
+	int hide_testmode = 0;
 	int i_am_root;
 	int o;
 	int num_childs = 0;
@@ -587,7 +602,11 @@
 #endif
 	srv->srvconf.dont_daemonize = 0;
 
-	while(-1 != (o = getopt(argc, argv, "f:m:hvVDpt"))) {
+#ifdef __CYGWIN__
+	disable_cygpathwarn();
+#endif
+
+	while(-1 != (o = getopt(argc, argv, "f:m:h?vVDpt"))) {
 		switch(o) {
 		case 'f':
 			if (srv->config_storage) {
@@ -605,12 +624,13 @@
 		case 'm':
 			buffer_copy_string(srv->srvconf.modules_dir, optarg);
 			break;
-		case 'p': print_config = 1; break;
-		case 't': test_config = 1; break;
+		case 'p': hide_testmode = 1; print_config = 1; break;
+		case 't': hide_testmode = 1; test_config = 1; break;
 		case 'D': srv->srvconf.dont_daemonize = 1; break;
 		case 'v': show_version(); return 0;
 		case 'V': show_features(); return 0;
 		case 'h': show_help(); return 0;
+		case '?': show_help(); return 0;
 		default:
 			show_help();
 			server_free(srv);
@@ -619,11 +639,18 @@
 	}
 
 	if (!srv->config_storage) {
+                srv->srvconf.dont_daemonize = 1;
+
+		if (hide_testmode == 0) {
 		log_error_write(srv, __FILE__, __LINE__, "s",
-				"No configuration available. Try using -f option.");
+				"trying to read configuration (test mode)");
+		}
 
-		server_free(srv);
-		return -1;
+		if (config_read(srv, "conf/lighttpd.conf")) {
+			srv->srvconf.dont_daemonize = 1;
+                        server_free(srv);
+			return -1;
+		}
 	}
 
 	if (print_config) {
--- ./src/configfile.c	2015-12-04 21:13:47.000000000 +0100
+++ ./src/configfile.c	2016-02-10 09:26:43.395246200 +0200
@@ -19,6 +19,9 @@
 #include <limits.h>
 #include <assert.h>
 
+#ifdef __CYGWIN__
+#include <sys/cygwin.h>
+#endif
 
 static int config_insert(server *srv) {
 	size_t i;
@@ -1005,6 +1008,10 @@
 
 	if (buffer_string_is_empty(context->basedir) ||
 			(fn[0] == '/' || fn[0] == '\\') ||
+#ifdef __CYGWIN__
+			/* Win32 drive letter fix */
+			(fn[1] == ':') ||
+#endif
 			(fn[0] == '.' && (fn[1] == '/' || fn[1] == '\\'))) {
 		filename = buffer_init_string(fn);
 	} else {
@@ -1053,6 +1060,28 @@
 	return s;
 }
 
+/* Win32 style path fix on Cygwin */
+static char* getcwd_win32(size_t pathlen) {
+	char *posixpath;
+	char *winpath;
+	posixpath = malloc(pathlen);
+	winpath = malloc(pathlen);
+
+	getcwd(posixpath, pathlen);
+
+	if (cygwin_conv_path(CCP_POSIX_TO_WIN_A, posixpath, winpath, pathlen)) {
+		return NULL;
+	} else {
+		int len = pathlen;
+		for (int i = 0; i < len; i++) {
+			if (winpath[i] == '\\') {
+				winpath[i] = '/';
+			}
+		}
+		return winpath;
+	}
+}
+
 int config_parse_cmd(server *srv, config_t *context, const char *cmd) {
 	tokenizer_t t;
 	int ret;
@@ -1150,8 +1179,15 @@
 	array_insert_unique(srv->config, (data_unset *)dpid);
 
 	dcwd = data_string_init();
+#ifdef __CYGWIN__
+	/* Win32 path fixes -> get absolute path and replace backslashes */
+	buffer_string_prepare_copy(dcwd->value, PATH_MAX - 1);
+
+	if (NULL != (dcwd->value->ptr = getcwd_win32(dcwd->value->size - 1))) {
+#else
 	buffer_string_prepare_copy(dcwd->value, 1023);
 	if (NULL != getcwd(dcwd->value->ptr, dcwd->value->size - 1)) {
+#endif
 		buffer_commit(dcwd->value, strlen(dcwd->value->ptr));
 		buffer_copy_string_len(dcwd->key, CONST_STR_LEN("var.CWD"));
 		array_insert_unique(srv->config, (data_unset *)dcwd);
--- ./src/Makefile.in	2016-01-02 11:47:13.000000000 +0100
+++ ./src/Makefile.in	2016-02-10 11:26:26.089686500 +0200
@@ -775,7 +775,7 @@
 
 #lib_LTLIBRARIES += mod_httptls.la
 #mod_httptls_la_SOURCES = mod_httptls.c
-#mod_httptls_la_LDFLAGS = -module -export-dynamic -avoid-version
+#mod_httptls_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 #mod_httptls_la_LIBADD = $(common_libadd)
 lib_LTLIBRARIES = $(am__append_1) mod_flv_streaming.la mod_evasive.la \
 	mod_webdav.la mod_magnet.la mod_cml.la mod_trigger_b4_dl.la \
@@ -788,109 +788,109 @@
 	mod_redirect.la mod_status.la mod_accesslog.la
 @NO_RDYNAMIC_TRUE@liblightcomp_la_SOURCES = $(common_src)
 @NO_RDYNAMIC_TRUE@liblightcomp_la_CFLAGS = $(AM_CFLAGS) $(LIBEV_CFLAGS)
-@NO_RDYNAMIC_TRUE@liblightcomp_la_LDFLAGS = -avoid-version -no-undefined
-@NO_RDYNAMIC_TRUE@liblightcomp_la_LIBADD = $(PCRE_LIB) $(SSL_LIB) $(FAM_LIBS) $(LIBEV_LIBS)
-@NO_RDYNAMIC_FALSE@common_libadd = 
+@NO_RDYNAMIC_TRUE@liblightcomp_la_LDFLAGS = -export-dynamic -avoid-version -no-undefined
+@NO_RDYNAMIC_TRUE@liblightcomp_la_LIBADD = $(ATTR_LIB) $(PCRE_LIB) $(SSL_LIB) $(FAM_LIBS) $(LIBEV_LIBS)
+@NO_RDYNAMIC_FALSE@common_libadd =
 @NO_RDYNAMIC_TRUE@common_libadd = liblightcomp.la
 mod_flv_streaming_la_SOURCES = mod_flv_streaming.c
-mod_flv_streaming_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_flv_streaming_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_flv_streaming_la_LIBADD = $(common_libadd)
 mod_evasive_la_SOURCES = mod_evasive.c
-mod_evasive_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_evasive_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_evasive_la_LIBADD = $(common_libadd)
 mod_webdav_la_SOURCES = mod_webdav.c
 mod_webdav_la_CFLAGS = $(AM_CFLAGS) $(XML_CFLAGS) $(SQLITE_CFLAGS) 
-mod_webdav_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_webdav_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_webdav_la_LIBADD = $(common_libadd) $(XML_LIBS) $(SQLITE_LIBS) $(UUID_LIBS)
 mod_magnet_la_SOURCES = mod_magnet.c mod_magnet_cache.c
 mod_magnet_la_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
-mod_magnet_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_magnet_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_magnet_la_LIBADD = $(common_libadd) $(LUA_LIBS) -lm
 mod_cml_la_SOURCES = mod_cml.c mod_cml_lua.c mod_cml_funcs.c
 mod_cml_la_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
-mod_cml_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_cml_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_cml_la_LIBADD = $(MEMCACHE_LIB) $(common_libadd) $(LUA_LIBS) -lm
 mod_trigger_b4_dl_la_SOURCES = mod_trigger_b4_dl.c
-mod_trigger_b4_dl_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_trigger_b4_dl_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_trigger_b4_dl_la_LIBADD = $(GDBM_LIB) $(MEMCACHE_LIB) $(PCRE_LIB) $(common_libadd)
 mod_mysql_vhost_la_SOURCES = mod_mysql_vhost.c
-mod_mysql_vhost_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_mysql_vhost_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_mysql_vhost_la_LIBADD = $(MYSQL_LIBS) $(common_libadd)
 mod_mysql_vhost_la_CPPFLAGS = $(MYSQL_INCLUDE)
 mod_cgi_la_SOURCES = mod_cgi.c
-mod_cgi_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_cgi_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_cgi_la_LIBADD = $(common_libadd)
 mod_scgi_la_SOURCES = mod_scgi.c
-mod_scgi_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_scgi_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_scgi_la_LIBADD = $(common_libadd)
 mod_staticfile_la_SOURCES = mod_staticfile.c
-mod_staticfile_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_staticfile_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_staticfile_la_LIBADD = $(common_libadd)
 mod_dirlisting_la_SOURCES = mod_dirlisting.c
-mod_dirlisting_la_LDFLAGS = -module -export-dynamic -avoid-version
-mod_dirlisting_la_LIBADD = $(common_libadd) $(PCRE_LIB)
+mod_dirlisting_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
+mod_dirlisting_la_LIBADD = $(common_libadd) $(ATTR_LIB) $(PCRE_LIB)
 mod_indexfile_la_SOURCES = mod_indexfile.c
-mod_indexfile_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_indexfile_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_indexfile_la_LIBADD = $(common_libadd)
 mod_setenv_la_SOURCES = mod_setenv.c
-mod_setenv_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_setenv_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_setenv_la_LIBADD = $(common_libadd)
 mod_alias_la_SOURCES = mod_alias.c
-mod_alias_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_alias_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_alias_la_LIBADD = $(common_libadd)
 mod_userdir_la_SOURCES = mod_userdir.c
-mod_userdir_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_userdir_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_userdir_la_LIBADD = $(common_libadd)
 mod_rrdtool_la_SOURCES = mod_rrdtool.c
-mod_rrdtool_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_rrdtool_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_rrdtool_la_LIBADD = $(common_libadd)
 mod_usertrack_la_SOURCES = mod_usertrack.c
-mod_usertrack_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_usertrack_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_usertrack_la_LIBADD = $(common_libadd)
 mod_proxy_la_SOURCES = mod_proxy.c
-mod_proxy_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_proxy_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_proxy_la_LIBADD = $(common_libadd)
 mod_ssi_la_SOURCES = mod_ssi_exprparser.c mod_ssi_expr.c mod_ssi.c
-mod_ssi_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_ssi_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_ssi_la_LIBADD = $(common_libadd) $(PCRE_LIB)
 mod_secdownload_la_SOURCES = mod_secdownload.c
-mod_secdownload_la_LDFLAGS = -module -export-dynamic -avoid-version
-mod_secdownload_la_LIBADD = $(common_libadd)
+mod_secdownload_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
+mod_secdownload_la_LIBADD = $(common_libadd) $(SSL_LIB)
 mod_expire_la_SOURCES = mod_expire.c
-mod_expire_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_expire_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_expire_la_LIBADD = $(common_libadd)
 mod_evhost_la_SOURCES = mod_evhost.c
-mod_evhost_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_evhost_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_evhost_la_LIBADD = $(common_libadd)
 mod_simple_vhost_la_SOURCES = mod_simple_vhost.c
-mod_simple_vhost_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_simple_vhost_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_simple_vhost_la_LIBADD = $(common_libadd)
 mod_fastcgi_la_SOURCES = mod_fastcgi.c
-mod_fastcgi_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_fastcgi_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_fastcgi_la_LIBADD = $(common_libadd)
 mod_extforward_la_SOURCES = mod_extforward.c
-mod_extforward_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_extforward_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_extforward_la_LIBADD = $(common_libadd)
 mod_access_la_SOURCES = mod_access.c
-mod_access_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_access_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_access_la_LIBADD = $(common_libadd)
 mod_compress_la_SOURCES = mod_compress.c
-mod_compress_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_compress_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_compress_la_LIBADD = $(Z_LIB) $(BZ_LIB) $(common_libadd)
 mod_auth_la_SOURCES = mod_auth.c http_auth.c
-mod_auth_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_auth_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_auth_la_LIBADD = $(CRYPT_LIB) $(SSL_LIB) $(LDAP_LIB) $(LBER_LIB) $(common_libadd)
 mod_rewrite_la_SOURCES = mod_rewrite.c
-mod_rewrite_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_rewrite_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_rewrite_la_LIBADD = $(PCRE_LIB) $(common_libadd)
 mod_redirect_la_SOURCES = mod_redirect.c
-mod_redirect_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_redirect_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_redirect_la_LIBADD = $(PCRE_LIB) $(common_libadd)
 mod_status_la_SOURCES = mod_status.c
-mod_status_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_status_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_status_la_LIBADD = $(common_libadd)
 mod_accesslog_la_SOURCES = mod_accesslog.c
-mod_accesslog_la_LDFLAGS = -module -export-dynamic -avoid-version
+mod_accesslog_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
 mod_accesslog_la_LIBADD = $(common_libadd)
 hdr = server.h base64.h buffer.h network.h log.h keyvalue.h \
 	response.h request.h fastcgi.h chunk.h \
