Also generate a .dll in MinGW builds

Previously only static a static library was produced on MinGW builds,
this PR makes sure that we also build a proper .dll
This commit is contained in:
jin-eld 2013-08-26 02:18:09 +03:00
parent b4c358de29
commit 634a67f627
2 changed files with 5 additions and 3 deletions

View File

@ -96,6 +96,7 @@ AC_ARG_WITH(libsodium-libs,
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
WIN32=no

View File

@ -34,7 +34,8 @@ libtoxcore_la_CFLAGS = -I$(top_srcdir) \
$(LIBSODIUM_CFLAGS)
libtoxcore_la_LDFLAGS = -version-info $(LIBTOXCORE_VERSION) \
$(LIBSODIUM_LDFLAGS)
libtoxcore_la_LIBS = $(LIBSODIUM_LIBS) \
-no-undefined \
$(LIBSODIUM_LDFLAGS) \
$(WINSOCK2_LIBS)
libtoxcore_la_LIBS = $(LIBSODIUM_LIBS)