Commit ac76db80 authored by Ghislain MARY's avatar Ghislain MARY

Fix compilation with MinGW.

parent 6ef660f4
......@@ -141,11 +141,13 @@ case "$target_os" in
CUNIT_LIBS+=" -lncurses"
;;
*mingw*)
LIBBELLESIP_CFLAGS="-DBELLESIP_EXPORTS"
CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0501"
LIBS="$LIBS -lws2_32 -liphlpapi"
LDFLAGS="$LDFLAGS -Wl,--export-all-symbols"
;;
esac
AC_SUBST(LIBBELLESIP_CFLAGS)
if test "$found_cunit" = "no" ; then
AC_MSG_WARN([Could not find cunit framework, tests are not compiled.])
......
......@@ -44,6 +44,6 @@
#define BELLESIP_EXPORT extern
#endif
#define BELLESIP_UNUSED(a) a;
#define BELLESIP_UNUSED(a) (void)a;
#endif
......@@ -65,7 +65,7 @@ if BUILD_TLS
libbellesip_la_SOURCES+=transports/tls_channel.c
endif
libbellesip_la_CFLAGS=$(STRICT_OPTIONS) $(ANTLR_CFLAGS) $(TLS_CFLAGS)
libbellesip_la_CFLAGS=$(STRICT_OPTIONS) $(ANTLR_CFLAGS) $(TLS_CFLAGS) $(LIBBELLESIP_CFLAGS)
libbellesip_la_LIBADD=libbellesip_generated.la $(ANTLR_LIBS) $(TLS_LIBS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment