diff --git a/configure.ac b/configure.ac index 36ac6c6..c0ed842 100644 --- a/configure.ac +++ b/configure.ac @@ -103,11 +103,16 @@ esac AC_SUBST(OBJ_FORMAT) case "$host" in - *-*-cygwin|*mingw*) + *-*-cygwin*) + # define this variable for enabling strict exports with libtool; for now, it's only supported by Win32 + LT_NO_UNDEFINED="-no-undefined" + MINGW_WINSOCK_LIBS= + ;; + *-*-mingw*) # define this variable for enabling strict exports with libtool; for now, it's only supported by Win32 LT_NO_UNDEFINED="-no-undefined" - # -lwsock32 only needed because of ntohl() usage, can get rid of after that's gone: - MINGW_WINSOCK_LIBS=-lwsock32 + # -lws2_32 only needed because of ntohl() usage, can get rid of after that's gone: + MINGW_WINSOCK_LIBS=-lws2_32 ;; *) LT_NO_UNDEFINED=