From 634a67f627a9691926186cd13ff93cb9d7ebd286 Mon Sep 17 00:00:00 2001 From: jin-eld Date: Mon, 26 Aug 2013 02:18:09 +0300 Subject: [PATCH] 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 --- configure.ac | 1 + toxcore/Makefile.inc | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d11c396a..0911f0d0 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/toxcore/Makefile.inc b/toxcore/Makefile.inc index 2fd93a22..90912a59 100644 --- a/toxcore/Makefile.inc +++ b/toxcore/Makefile.inc @@ -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)