Commit 1174ce48 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix compilation with mingw.

parent 75eaecd4
......@@ -83,7 +83,7 @@ antlr_java_prefixes="$antlr_prefix/share/java /usr/local/share/java /usr/share/j
if test $antlr_jar = "no" ; then
AC_MSG_ERROR([Could not find antlr.jar. Please install antlr3 ])
fi
AC_PATH_PROG([JAVA],[java])
AC_PATH_PROG([JAVA],[java],[no])
if test $JAVA = "no" ; then
AC_MSG_ERROR([Could not find java prog. Please install java ])
else
......@@ -135,6 +135,7 @@ case "$target_os" in
*mingw*)
CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0501"
LIBS="$LIBS -lws2_32"
LDFLAGS="$LDFLAGS -Wl,--export-all-symbols"
;;
esac
......
......@@ -68,7 +68,7 @@ libbellesip_la_CFLAGS=$(STRICT_OPTIONS) $(ANTLR_CFLAGS) $(TLS_CFLAGS)
libbellesip_la_LIBADD=libbellesip_generated.la $(ANTLR_LIBS) $(TLS_LIBS)
libbellesip_la_LDFLAGS=-no-undefined
libbellesip_la_LDFLAGS=-no-undefined $(LDFLAGS)
AM_CPPFLAGS=-I$(top_srcdir)/include
......
......@@ -17,7 +17,7 @@ belle_sip_tester_SOURCES= belle_sip_tester.c \
belle_sip_tester_CFLAGS=$(CUNIT_CFLAGS) $(STRICT_OPTIONS)
belle_sip_tester_LDFLAGS=$(CUNIT_LIBS)
belle_sip_tester_LDFLAGS=$(CUNIT_LIBS) $(AM_LDFLAGS)
belle_sip_object_describe_SOURCES=describe.c
......@@ -25,7 +25,7 @@ AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src
LDADD=$(top_builddir)/src/libbellesip.la
AM_LDFLAGS=-export-dynamic
AM_LDFLAGS=-no-undefined -export-dynamic
AM_CFLAGS=$(STRICT_OPTIONS)
......
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