In order to build shared libraries on Cygwin/MinGW/Windows, all
symbols must be defined at link time. Activating the "-no-undefined"
flag will fail the build if it's not the case.
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
)
AM_CONDITIONAL([COMPAT_EPOLL], [ test "$enable_epoll" = "yes" ])
+case "${host}" in
+ # All symbols must be resolved at link time on Cygwin/MinGW/Windows,
+ # else libtool will not be able to build shared libraries.
+ *-*-cygwin*)
+ LDFLAGS="-Wl,-no-undefined $LDFLAGS";;
+esac
+
AC_SYS_LARGEFILE
AC_PROG_CC
LT_INIT